Skip to content

Commit 69fb9ff

Browse files
committed
Throw user-friendly exception with the proper HTTP statuscode (simplesamlphp#2234)
* Throw user-friendly exception with the proper HTTP statuscode for 'method not found' * Suppress traceback for MethodNotAllowed error, unless debug-logging is set * Be able to suppress error reporting for specific types of errors
1 parent 2a76866 commit 69fb9ff

38 files changed

Lines changed: 91 additions & 42 deletions

File tree

modules/core/locales/af/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ msgstr ""
3838
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
3939
msgstr "As jy 'n programmeerder is wat die 'single sign-on' oplossing implementeer, het jy 'n probleem met die metadata opset. Bevestig dat die metadata korrek ingestel is op beide die identiteit verskaffer en diensverskaffer."
4040

41-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
41+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
4242
msgstr "As jy 'n gebruiker is wat na aanleiding van 'n skakel op 'n webwerf hierdie fout ontvang het, moet jy hierdie fout aan die eienaar van die webwerf aan stuur."
4343

4444
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/ar/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "اذا استمرت هذه المشكلة بالحدوث، رجاءا ب
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr " و كانت (Single Sign-On) ان كنت مبرمجاً تعمل علي توفير حل لتوثيق دخول لمرة واحدة لديك مشكلة بادخال البيانات الوصفية, تأكد من أن أدخال البيانات الوصفية صحيح بكل من محدد الهوية و المخدم "
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "ان تعرضت لهذا الاشكال بعيد اتباعك لرابط بموقع ما, ينبغي عليك الابلاغ عن هذا الاشكال لمالك الموقع المعني"
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/cs/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Pokud problém přetrvává, můžete ho nahlásit správci."
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Pokud jste vývojář nasazující řešení jednotného přihlašování, máte problém s konfigurací metadat. Ověřte, zda jsou metadata nakonfigurována správně jak u poskytovatele identity tak u poskytovatele služby."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Pokud jste uživatel, který obdržel chybu po následování odkazu na webové stránce, měli byste o této chybě informovat vlastníka této stránky. "
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/da/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Hvis dette problem fortsætter, kan du rapportere det til systemadminist
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Hvis du er udvikler, så har du et metadata-konfigurationsproblem. Tjek at metadata er konfigurerede korrekt både på service-siden og identitetsudbyder-siden."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Hvis du har modtaget denne fejlbesked efter at have klikket på et lilnk, skal du rappoterer fejlen til ejeren af siden. "
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/de/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Wenn das Problem weiter besteht, kannst du diesen Fehler den Systemadmin
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Arbeiten Sie selbst an einem Web Single Sign-On System, stimmt mit den benutzten Metadaten etwas nicht. Überprüfen Sie die Metadaten des Identity Providers und des Service Providers."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Sind Sie lediglich einem Verweis einer anderen Website hierher gefolgt, sollten Sie diesen Fehler den Betreibern der Website melden."
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/el/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Αν το πρόβλημα εξακολουθεί να υφίστατα
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Εάν είστε διαχειριστής της υπηρεσίας ταυτοποίησης και εξουσιοδότησης, τότε αντιμετωπίζετε κάποιο πρόβλημα με τη διαμόρφωση των μεταδεδομένων. Βεβαιωθείτε ότι τα μεταδεδομένα έχουν ρυθμιστεί σωστά τόσο στον πάροχο ταυτότητας όσο και στον πάροχο υπηρεσιών."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Αν λάβατε αυτό το σφάλμα ακολουθώντας έναν σύνδεσμο σε κάποιον ιστότοπο, θα πρέπει να το αναφέρετε στον ιδιοκτήτη του εν λόγω ιστότοπου."
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/en/LC_MESSAGES/core.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ msgstr "If this problem persists, you can report it to the system administrators
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
51-
msgstr "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
51+
msgstr "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."
5454
msgstr ""

modules/core/locales/es/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Si el problema persiste, puede reportarlo a los administradores del sist
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Si usted es un desarrollador que está desplegando una solución de inicio único, tiene un problema con la configuración de sus metadatos. Verifique que los metadatos están configurados correctamente en el proveedor de identidad y en el proveedor de servicios"
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Si usted es un usuario que recibe este error luego de seguir un vínculo en un sitio, debe reportar el error al dueño del sitio."
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/et/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Kui probleem ei kao, siis teavita sellest süsteemi administraatoreid."
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Kui sa oled arendaja, kes juurutab ühekordse sisselogimise lahendust, siis on probleemi põhjuseks metaandmete seadistused. Kontrolli, et metaandmed oleks seadistatud korrektselt nii identiteedipakkuja kui teenusepakkuja poolel."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Kui sa oled kasutaja, kes sai selle veateate veebilehel linki klõpsates, siis peaksid sellest tõrkest veebilehe omanikku teavitama."
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

modules/core/locales/eu/LC_MESSAGES/core.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgstr "Arazoak bere horretan badirau, sistemaren administratzaileei berri eman
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Hasiera-bakarreko sistema bat zabaltzen ari zaren garatzaile bat bazara, arazo bat duzu zure metadatuen kongigurazioarekin. Egiazta ezazu metadatuak zuzen konfiguratuak daudela identitate hornitzailean eta zerbitzu hornitzailean."
4949

50-
msgid "If you are an user who received this error after following a link on a site, you should report this error to the owner of that site."
50+
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5151
msgstr "Gune bateko lotura bat jarraituz errore hau jasotzen duen erabiltzaile bat bazara, guneko jabeari eman behar diozu errorearen berri."
5252

5353
msgid "If you are the administrator of this installation, please refer to the <a href=\"https://simplesamlphp.org/docs/\">SimpleSAMLphp documentation</a> for how to configure and interact with the software."

0 commit comments

Comments
 (0)