[JBoss JIRA] (GTNPORTAL-3290) IE9: Action does not work when page url contains special characters
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3290?page=com.atlassian.jira.pl... ]
Trong Tran updated GTNPORTAL-3290:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Assignee: Trong Tran
Resolution: Done
> IE9: Action does not work when page url contains special characters
> -------------------------------------------------------------------
>
> Key: GTNPORTAL-3290
> URL: https://issues.jboss.org/browse/GTNPORTAL-3290
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.5.6.Final
> Reporter: Tran Trung Thanh
> Assignee: Trong Tran
> Fix For: 3.5.9.Final
>
>
> In IE9, when page URL contains special characters, if we click to an action, it does not work.
> Steps to reproduce:
> # Open IE9, go to portal/intranet/wiki
> # Create wiki page with name: 'avião árido joão café'
> # Save and close
> # Edit again
> # Switch to Richtext mode -> does not work.
> I add this code fragment in *ajaxPost* method of *UIForm.js* and it works well (but it is not the full solution because I encode only the page name, not the whole url):
> {code}
> if ($.browser.msie != undefined) {
> var q = url.indexOf('?');
> var s1 = "";
> var s2 = "";
> if (q > -1) {
> s1 = url.substring(0, q);
> s2 = url.substring(q);
> } else {
> q1 = ajaxGetLink.indexOf('#');
> if (q1 > -1) {
> s1 = url.substring(0, q1);
> s2 = url.substring(q1);
> } else {
> s1 = url;
> s2 = "";
> }
> }
> var slash = s1.lastIndexOf('/');
> if (slash > -1) {
> var pageName = s1.substring(slash + 1);
> url = s1.substring(0, slash) +'/' + encodeURIComponent(pageName) + s2;
> }
> }
> {code}
> This issue fixes also problem in Tab
> # Create new tab whose name contains accent character
> # Access it -> Cannot access
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (GTNPORTAL-3365) Exception swallow in UserDaoImpl.persistUserInfo()
by Marek Posolda (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3365?page=com.atlassian.jira.pl... ]
Marek Posolda updated GTNPORTAL-3365:
-------------------------------------
Fix Version/s: 3.6.4.Final
> Exception swallow in UserDaoImpl.persistUserInfo()
> --------------------------------------------------
>
> Key: GTNPORTAL-3365
> URL: https://issues.jboss.org/browse/GTNPORTAL-3365
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Affects Versions: 3.6.3.Final
> Reporter: Vu Viet Phuong
> Assignee: Vu Viet Phuong
> Fix For: 3.6.4.Final, 3.7.0.Final
>
> Original Estimate: 4 hours
> Time Spent: 6 hours
> Remaining Estimate: 0 minutes
>
> Under "{{org.exoplatform.services.organization.idm}},
> focus on :
> {code:title=UserDAOImp.java|borderStyle=solid}
> public void persistUserInfo(User user, IdentitySession session) throws Exception
> {
> orgService.flush();
> AttributesManager am = session.getAttributesManager();
> ArrayList attributes = new ArrayList();
> /* ... */
> if (user.getPassword() != null)
> {
> if (orgService.getConfiguration().isPasswordAsAttribute())
> {
> attributes.add(new SimpleAttribute(USER_PASSWORD, user.getPassword()));
> }
> else
> {
> try
> {
> am.updatePassword(session.getPersistenceManager().findUser(user.getUserName()), user.getPassword());
> }
> catch (IdentityException e)
> {
> log.info("Cannot update password: " + user.getUserName() + "; ", e);
> }
> }
> }
> Attribute[] attrs = new Attribute[attributes.size()];
> attrs = (Attribute[])attributes.toArray(attrs);
> try
> {
> am.updateAttributes(user.getUserName(), attrs);
> }
> catch (IdentityException e)
> {
> log.info("Cannot update attributes for user: " + user.getUserName() + "; ", e);
> }
> }
> {code}
>
> The method {{saveUser(User, boolean) _throws Exception_}}
> calls
> {{persistUserInfo(User user, IdentitySession session) _throws Exception_}}.
>
> Whereas, deeper in the code, you can easily notice that exceptions are caught in this level and traced by a {{log.info}}:
> * first time in the password level
> * second time when updating all of the attributes.
> (!) Users want to be notified when an error occurs during user registration.
> As well as being aware of the type of the caught exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (GTNPORTAL-3290) IE9: Action does not work when page url contains special characters
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3290?page=com.atlassian.jira.pl... ]
Trong Tran updated GTNPORTAL-3290:
----------------------------------
Fix Version/s: 3.5.9.Final
> IE9: Action does not work when page url contains special characters
> -------------------------------------------------------------------
>
> Key: GTNPORTAL-3290
> URL: https://issues.jboss.org/browse/GTNPORTAL-3290
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.5.6.Final
> Reporter: Tran Trung Thanh
> Fix For: 3.5.9.Final
>
>
> In IE9, when page URL contains special characters, if we click to an action, it does not work.
> Steps to reproduce:
> # Open IE9, go to portal/intranet/wiki
> # Create wiki page with name: 'avião árido joão café'
> # Save and close
> # Edit again
> # Switch to Richtext mode -> does not work.
> I add this code fragment in *ajaxPost* method of *UIForm.js* and it works well (but it is not the full solution because I encode only the page name, not the whole url):
> {code}
> if ($.browser.msie != undefined) {
> var q = url.indexOf('?');
> var s1 = "";
> var s2 = "";
> if (q > -1) {
> s1 = url.substring(0, q);
> s2 = url.substring(q);
> } else {
> q1 = ajaxGetLink.indexOf('#');
> if (q1 > -1) {
> s1 = url.substring(0, q1);
> s2 = url.substring(q1);
> } else {
> s1 = url;
> s2 = "";
> }
> }
> var slash = s1.lastIndexOf('/');
> if (slash > -1) {
> var pageName = s1.substring(slash + 1);
> url = s1.substring(0, slash) +'/' + encodeURIComponent(pageName) + s2;
> }
> }
> {code}
> This issue fixes also problem in Tab
> # Create new tab whose name contains accent character
> # Access it -> Cannot access
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (GTNPORTAL-3365) Exception swallow in UserDaoImpl.persistUserInfo()
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3365?page=com.atlassian.jira.pl... ]
RH Bugzilla Integration updated GTNPORTAL-3365:
-----------------------------------------------
Bugzilla Update: Perform
Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1039600
> Exception swallow in UserDaoImpl.persistUserInfo()
> --------------------------------------------------
>
> Key: GTNPORTAL-3365
> URL: https://issues.jboss.org/browse/GTNPORTAL-3365
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Affects Versions: 3.6.3.Final
> Reporter: Vu Viet Phuong
> Assignee: Vu Viet Phuong
> Fix For: 3.7.0.Final
>
> Original Estimate: 4 hours
> Time Spent: 6 hours
> Remaining Estimate: 0 minutes
>
> Under "{{org.exoplatform.services.organization.idm}},
> focus on :
> {code:title=UserDAOImp.java|borderStyle=solid}
> public void persistUserInfo(User user, IdentitySession session) throws Exception
> {
> orgService.flush();
> AttributesManager am = session.getAttributesManager();
> ArrayList attributes = new ArrayList();
> /* ... */
> if (user.getPassword() != null)
> {
> if (orgService.getConfiguration().isPasswordAsAttribute())
> {
> attributes.add(new SimpleAttribute(USER_PASSWORD, user.getPassword()));
> }
> else
> {
> try
> {
> am.updatePassword(session.getPersistenceManager().findUser(user.getUserName()), user.getPassword());
> }
> catch (IdentityException e)
> {
> log.info("Cannot update password: " + user.getUserName() + "; ", e);
> }
> }
> }
> Attribute[] attrs = new Attribute[attributes.size()];
> attrs = (Attribute[])attributes.toArray(attrs);
> try
> {
> am.updateAttributes(user.getUserName(), attrs);
> }
> catch (IdentityException e)
> {
> log.info("Cannot update attributes for user: " + user.getUserName() + "; ", e);
> }
> }
> {code}
>
> The method {{saveUser(User, boolean) _throws Exception_}}
> calls
> {{persistUserInfo(User user, IdentitySession session) _throws Exception_}}.
>
> Whereas, deeper in the code, you can easily notice that exceptions are caught in this level and traced by a {{log.info}}:
> * first time in the password level
> * second time when updating all of the attributes.
> (!) Users want to be notified when an error occurs during user registration.
> As well as being aware of the type of the caught exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months