[xwiki/xwiki-platform] d73c31: XWIKI-24786: A failed identifier validation leaves...
Branch: refs/heads/stable-17.10.x Home: https://github.com/xwiki/xwiki-platform Commit: d73c31b233bca3503f5893f15c599183224967e0 https://github.com/xwiki/xwiki-platform/commit/d73c31b233bca3503f5893f15c599... Author: Manuel Leduc <[email protected]> Date: 2026-09-03 (Thu, 03 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Administration.xml M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Translations.xml Log Message: ----------- XWIKI-24786: A failed identifier validation leaves the image style creation form unusable * Fall back to the entered name when the entity name validation request fails or returns an unexpected result, so that the creation button gets enabled instead of staying disabled forever with no way for the user to recover * Give that request a timeout, so that a validation page which never answers is handled the same way instead of blocking the form indefinitely * Tell the user, with the new newImageStyle.validationFailed translation, that the name could not be checked and will be used as entered, instead of reporting a normalization that did not happen * Skip the request altogether for an empty name, which has nothing to check * Report the validation error with console.error instead of console.log (cherry picked from commit 4916d7104c5a7e85e50857a86733221929fc7adc) Commit: 0c9190f97998cd3e6331e62ac5682f6df302586e https://github.com/xwiki/xwiki-platform/commit/0c9190f97998cd3e6331e62ac5682... Author: Manuel Leduc <[email protected]> Date: 2026-09-03 (Thu, 03 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Administration.xml M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/test/java/org/xwiki/image/style/AdministrationPageTest.java Log Message: ----------- XWIKI-24787: The normalized identifier is never displayed in the image style administration * Remove the trailing space in the id of the hint holding the normalized identifier, so that the selector used to fill it in matches it and the hint is actually displayed * Assert, in the page test of the administration, that the hint holding the normalized identifier can be found through the identifier the script uses to fill it in (cherry picked from commit 040a889bd62a4a55f0529f0044c64e2d54dbc51b) Commit: 8eacd0085e153b3c506a7f765cc1275c306f143b https://github.com/xwiki/xwiki-platform/commit/8eacd0085e153b3c506a7f765cc12... Author: Manuel Leduc <[email protected]> Date: 2026-09-03 (Thu, 03 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Administration.xml M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/test/java/org/xwiki/image/style/AdministrationPageTest.java Log Message: ----------- XWIKI-24788: The 'New Image Style' field hint repeats the field label * Use the newImageStyle.hint translation key, which describes the field, for the hint of the new image style identifier field, instead of the newImageStyle.label key already used for its label * Assert, in the page test of the administration, that the label and the hint of the identifier field render two different translation keys (cherry picked from commit 18dfce1b09383ee0f5141323d60b6fad71fe1bb5) Commit: 5bb74b9e91c9ad8674c87bbcfa83b18b39cb27d7 https://github.com/xwiki/xwiki-platform/commit/5bb74b9e91c9ad8674c87bbcfa83b... Author: Manuel Leduc <[email protected]> Date: 2026-09-03 (Thu, 03 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Administration.xml M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Translations.xml Log Message: ----------- XWIKI-24789: The image style administration does not report an identifier that breaks the naming conventions * Report, with the new newImageStyle.invalidIdentifier translation, that the entered identifier does not follow the naming conventions and is being rewritten, instead of presenting the rewritten identifier as if nothing was wrong * Base that on the isOriginalValid and useValidation values already returned by the entity name validation page, which were both ignored (cherry picked from commit 471f7f46ab45acb6477351e5f67e57999ef1843b) Commit: c3476736875bc950b7ce5dd1519b8c2c7aafe7df https://github.com/xwiki/xwiki-platform/commit/c3476736875bc950b7ce5dd1519b8... Author: Manuel Leduc <[email protected]> Date: 2026-09-03 (Thu, 03 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Administration.xml M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/main/resources/Image/Style/Code/Translations.xml Log Message: ----------- XWIKI-24790: An expired CSRF token is reported as a naming convention problem in the image style administration * Report, with the new newImageStyle.tokenExpired translation, that the page has to be reloaded when the entity name validation page answers 401 because the CSRF token is no longer valid, instead of blaming the naming conventions * Keep the creation button disabled in that case, since the creation itself would be rejected for the same reason (cherry picked from commit 7d1186a218d466ccf12f7c04bc15857736d0df25) Compare: https://github.com/xwiki/xwiki-platform/compare/ab8efe845513...c3476736875b To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications