You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Vitaly Baranovsky (JIRA)" <je...@portals.apache.org> on 2007/07/24 15:24:31 UTC
[jira] Created: (JS2-758) Ukrainian symbols doesn't save through
Portal Site Manager
Ukrainian symbols doesn't save through Portal Site Manager
----------------------------------------------------------
Key: JS2-758
URL: https://issues.apache.org/jira/browse/JS2-758
Project: Jetspeed 2
Issue Type: Bug
Components: Components Core, Customizer, i18n and l10n
Environment: SuseLinux 10.1, Apache Tomcat 5.5.20, Java 1.5.10
Reporter: Vitaly Baranovsky
Priority: Critical
Fix For: 2.1.2
Ukrainian symbols doesn't save through Portal Site Manager
Algorithm to achieve this bug:
I've created page through Portal Site Manager. I'd entered text 'Some test page' into field 'Title' of Site Manager. I'd clicked 'Save'. I'd opened this page and its title really 'Some test page'.
Next, I'd opened this page through Portal Site Manager. I'd entered some text in Ukrainian language. I'd clicked 'Save'. I'd opened this page and its title still 'Some test page'. I'd opened Portal Site Manager. The name of this page still 'Some test page'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Resolved: (JS2-758) Ukrainian symbols doesn't save through
Portal Site Manager
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko resolved JS2-758.
----------------------------
Resolution: Fixed
Fix Version/s: (was: 2.1.2)
2.2
2.1.3
Besides Portal Site Manager, Permissions Admin UI pages and Constraints Admin UI pages have escape() Javascript function calls to disable to use non-ascii characters for permission names and resource names.
The function calls are replaced with encodeURIComponent().
> Ukrainian symbols doesn't save through Portal Site Manager
> ----------------------------------------------------------
>
> Key: JS2-758
> URL: https://issues.apache.org/jira/browse/JS2-758
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Admin Portlets
> Affects Versions: 2.1.3, 2.2
> Environment: SuseLinux 10.1, Apache Tomcat 5.5.20, Java 1.5.10
> Reporter: Vitaly Baranovsky
> Assignee: Woonsan Ko
> Fix For: 2.1.3, 2.2
>
> Attachments: js2-758-diff.txt
>
>
> Ukrainian symbols doesn't save through Portal Site Manager
> Algorithm to achieve this bug:
> I've created page through Portal Site Manager. I'd entered text 'Some test page' into field 'Title' of Site Manager. I'd clicked 'Save'. I'd opened this page and its title really 'Some test page'.
> Next, I'd opened this page through Portal Site Manager. I'd entered some text in Ukrainian language. I'd clicked 'Save'. I'd opened this page and its title still 'Some test page'. I'd opened Portal Site Manager. The name of this page still 'Some test page'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Commented: (JS2-758) Ukrainian symbols doesn't save through
Portal Site Manager
Posted by "Vitaly Baranovsky (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516328 ]
Vitaly Baranovsky commented on JS2-758:
---------------------------------------
Woonsan Ko, I've applied your patch. Now ukrainian symbols are saving successfully!
Great thanks!
> Ukrainian symbols doesn't save through Portal Site Manager
> ----------------------------------------------------------
>
> Key: JS2-758
> URL: https://issues.apache.org/jira/browse/JS2-758
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Components Core, Customizer, i18n and l10n
> Environment: SuseLinux 10.1, Apache Tomcat 5.5.20, Java 1.5.10
> Reporter: Vitaly Baranovsky
> Priority: Critical
> Fix For: 2.1.2
>
> Attachments: js2-758-diff.txt
>
>
> Ukrainian symbols doesn't save through Portal Site Manager
> Algorithm to achieve this bug:
> I've created page through Portal Site Manager. I'd entered text 'Some test page' into field 'Title' of Site Manager. I'd clicked 'Save'. I'd opened this page and its title really 'Some test page'.
> Next, I'd opened this page through Portal Site Manager. I'd entered some text in Ukrainian language. I'd clicked 'Save'. I'd opened this page and its title still 'Some test page'. I'd opened Portal Site Manager. The name of this page still 'Some test page'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Assigned: (JS2-758) Ukrainian symbols doesn't save through
Portal Site Manager
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko reassigned JS2-758:
------------------------------
Assignee: Woonsan Ko
> Ukrainian symbols doesn't save through Portal Site Manager
> ----------------------------------------------------------
>
> Key: JS2-758
> URL: https://issues.apache.org/jira/browse/JS2-758
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Admin Portlets
> Affects Versions: 2.1.3, 2.2
> Environment: SuseLinux 10.1, Apache Tomcat 5.5.20, Java 1.5.10
> Reporter: Vitaly Baranovsky
> Assignee: Woonsan Ko
> Fix For: 2.1.2
>
> Attachments: js2-758-diff.txt
>
>
> Ukrainian symbols doesn't save through Portal Site Manager
> Algorithm to achieve this bug:
> I've created page through Portal Site Manager. I'd entered text 'Some test page' into field 'Title' of Site Manager. I'd clicked 'Save'. I'd opened this page and its title really 'Some test page'.
> Next, I'd opened this page through Portal Site Manager. I'd entered some text in Ukrainian language. I'd clicked 'Save'. I'd opened this page and its title still 'Some test page'. I'd opened Portal Site Manager. The name of this page still 'Some test page'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Updated: (JS2-758) Ukrainian symbols doesn't save through
Portal Site Manager
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko updated JS2-758:
---------------------------
Component/s: (was: Components Core)
(was: Customizer)
(was: i18n and l10n)
Admin Portlets
Priority: Major (was: Critical)
Affects Version/s: 2.2
2.1.3
> Ukrainian symbols doesn't save through Portal Site Manager
> ----------------------------------------------------------
>
> Key: JS2-758
> URL: https://issues.apache.org/jira/browse/JS2-758
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Admin Portlets
> Affects Versions: 2.1.3, 2.2
> Environment: SuseLinux 10.1, Apache Tomcat 5.5.20, Java 1.5.10
> Reporter: Vitaly Baranovsky
> Fix For: 2.1.2
>
> Attachments: js2-758-diff.txt
>
>
> Ukrainian symbols doesn't save through Portal Site Manager
> Algorithm to achieve this bug:
> I've created page through Portal Site Manager. I'd entered text 'Some test page' into field 'Title' of Site Manager. I'd clicked 'Save'. I'd opened this page and its title really 'Some test page'.
> Next, I'd opened this page through Portal Site Manager. I'd entered some text in Ukrainian language. I'd clicked 'Save'. I'd opened this page and its title still 'Some test page'. I'd opened Portal Site Manager. The name of this page still 'Some test page'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Updated: (JS2-758) Ukrainian symbols doesn't save through
Portal Site Manager
Posted by "Woonsan Ko (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko updated JS2-758:
---------------------------
Attachment: js2-758-diff.txt
I could reproduce this problem with Korean characters, too.
As a summary, IMO,
(1) site-view.vm should be patched with the attachment.
(2) Tomcat connector's URIEncoding should be set to 'UTF-8'.
Details are as follows:
In /j2-admin/WEB-INF/view/site/site-view.vm, there are many escape() calls, which does not support i18n. Instead of escape(), we can use encodeURI() or encodeURIComponent() function to encode unicode characters.
See the following pages on this topic:
- https://blueprints.dev.java.net/ajax-faq.html
- http://worldtimzone.com/blog/date/2002/09/24
- http://weblogs.java.net/blog/gmurray71/archive/2006/03/ajax_i18n_with.html
So, I removed escape() calls in the page, and add escapeURIComponent() just before invoking AJAX calls.
Also, I found that it worked properly only when the Tomcat connector's attribute, URIEncoding was set to 'UTF-8'. See the following example:
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
URIEncoding="UTF-8" />
About the above configuration, see the followings:
- http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
Thanks.
> Ukrainian symbols doesn't save through Portal Site Manager
> ----------------------------------------------------------
>
> Key: JS2-758
> URL: https://issues.apache.org/jira/browse/JS2-758
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Components Core, Customizer, i18n and l10n
> Environment: SuseLinux 10.1, Apache Tomcat 5.5.20, Java 1.5.10
> Reporter: Vitaly Baranovsky
> Priority: Critical
> Fix For: 2.1.2
>
> Attachments: js2-758-diff.txt
>
>
> Ukrainian symbols doesn't save through Portal Site Manager
> Algorithm to achieve this bug:
> I've created page through Portal Site Manager. I'd entered text 'Some test page' into field 'Title' of Site Manager. I'd clicked 'Save'. I'd opened this page and its title really 'Some test page'.
> Next, I'd opened this page through Portal Site Manager. I'd entered some text in Ukrainian language. I'd clicked 'Save'. I'd opened this page and its title still 'Some test page'. I'd opened Portal Site Manager. The name of this page still 'Some test page'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org