-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
-
Fix Version/s: 7.0.0 DXP FP98, 7.0.X, 7.1.10 DXP FP18, 7.1.10.5 SP5, 7.1.X, 7.2.10 DXP FP6, 7.2.X, 7.3.3 CE GA4, 7.3.10 DXP GA1, Master
-
Component/s: Core Infrastructure
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
URLs with character outside 7-bit ASCII, for example:
- http://localhost:8080/es/web/mysite/página
- http://localhost:8080/en/web/mysite/pageÑÑ
are not working correctly in some internal portal redirects.
Root cause of the issue is inside I18nServlet.getI18nData(HttpServletRequest httpServletRequest).
That method is not encoding the redirect URL.
The issue is only reproduced in case the URL contains the language section (/en, /es, etc...) as it triggers the I18nServlet execution.
Steps to reproduce - 1
- Create a site called "mysite"
- Create a public page called "pageÑÑ".
- Publish the page
- Open http://localhost:8080/en_US/web/mysite/pageÑÑ (with /en_US in the URL!!)
- Expected behavior: Page is redirected to http://localhost:8080/en-US/web/mysite/pageÑÑ
- Wrong behavior: Page is redirected to http://localhost:8080/en-US/web/mysite/page2%D1%D1 and a 404 error is produced
- Expected behavior: Page is redirected to http://localhost:8080/en-US/web/mysite/pageÑÑ
Steps to reproduce - 2
- Create a site called "mysite"
- Create a public page called "pageÑÑ"
- Publish the page
- Open http://localhost:8080/en/web/mysite/pageÑÑ
- Open http://localhost:8080/c/portal/xxxx
- Expected behavior: Page is redirected to http://localhost:8080/en/web/mysite/pageÑÑ as it was the last visited page
- Wrong behavior: Page is redirected to http://localhost:8080/en/web/mysite/page2%D1%D1 and a 404 error is produced
- Expected behavior: Page is redirected to http://localhost:8080/en/web/mysite/pageÑÑ as it was the last visited page
- causes
-
LPS-130105 JBoss 7.2 wrong pathinfo comes encoded in I18nServlet resulting in double encoding
- Closed