X Tutup
Skip to content

adapted solution for 5xx error on i10n vsprintf#38103

Merged
AlexAndBear merged 1 commit intomasterfrom
issues/37799
Nov 17, 2020
Merged

adapted solution for 5xx error on i10n vsprintf#38103
AlexAndBear merged 1 commit intomasterfrom
issues/37799

Conversation

@AlexAndBear
Copy link

@AlexAndBear AlexAndBear commented Nov 11, 2020

Description

As we using the vsprintf links in the i10n translation provider and also translations provided via the community, there is always the possibility, that there might be an error in the translation string.

Especially if there is an unescaped % char in the text, without any parameter, this will provoke an error in the WebUi (Error Page).

Instead of showing a 5xx Error, the original text will be displayed.

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@CLAassistant
Copy link

CLAassistant commented Nov 11, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@DeepDiver1975 DeepDiver1975 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a unit test for this. THX

@AlexAndBear AlexAndBear marked this pull request as ready for review November 13, 2020 12:55
@owncloud owncloud deleted a comment from update-docs bot Nov 13, 2020
.htaccess Outdated
</IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /core/templates/403.php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

Makefile Outdated
TEST_DATABASE=sqlite
TEST_EXTERNAL_ENV=smb-silvershell
TEST_PHP_SUITE=
TEST_PHP_SUITE=tests/Core/Command/Config/App/SetConfigTest.php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@DeepDiver1975
Copy link
Member

squash commits into one and we are ready to go @HieronymusPerro - THX

@AlexAndBear
Copy link
Author

AlexAndBear commented Nov 16, 2020

Done, THX for reviewing! @DeepDiver1975

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@AlexAndBear AlexAndBear merged commit 5cd3752 into master Nov 17, 2020
@delete-merged-branch delete-merged-branch bot deleted the issues/37799 branch November 17, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings language to "Dansk" breaks settings page.

4 participants

X Tutup