[
https://jira.jboss.org/jira/browse/GTNPORTAL-511?page=com.atlassian.jira....
]
jerem j updated GTNPORTAL-511:
------------------------------
Summary: userPref of gadgets are not sometime not saved correctly (was: userPref
of gadgets are not saved anymore)
Description:
Every call to gadgets.Prefs.set generate a call to save the data in the backend (an action
in the dashboard portlet). To save we send all the set of preferences.
The jira gadget call this API multiple times in a very short time. So there is multiple
ajax request sent to the backend but not in a precise order. So it might happen that the
first request arrive the last one, and so old preferences are saved.
ref:
http://code.google.com/apis/gadgets/docs/reference/#gadgets.Prefs.set
http://jira4j.exoplatform.org/rest/gadgets/1.0/g/com.atlassian.jira.gadge...
I'm going to do some more research to know how to fix this.
was:
The users preferences of the gadgets are not saved anymore.
The following url is called in Ajax, but an html page is returned :
http://localhost:8080/portal/private/classic/Tab_0?portal:componentId=27e...
After reloading the page, the preferences are lost. You can try with
http://jira4j.exoplatform.org/rest/gadgets/1.0/g/com.atlassian.jira.gadge...
The URL to call is generated in ExoBasedUserPrefStore.js. There is probably something
wrong there.
userPref of gadgets are not sometime not saved correctly
--------------------------------------------------------
Key: GTNPORTAL-511
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-511
Project: GateIn Portal
Issue Type: Bug
Components: User Interface
Affects Versions: 3.0.0-Beta04
Environment: svn r1330
Reporter: jerem j
Fix For: 3.0.0-CR01
Every call to gadgets.Prefs.set generate a call to save the data in the backend (an
action in the dashboard portlet). To save we send all the set of preferences.
The jira gadget call this API multiple times in a very short time. So there is multiple
ajax request sent to the backend but not in a precise order. So it might happen that the
first request arrive the last one, and so old preferences are saved.
ref:
http://code.google.com/apis/gadgets/docs/reference/#gadgets.Prefs.set
http://jira4j.exoplatform.org/rest/gadgets/1.0/g/com.atlassian.jira.gadge...
I'm going to do some more research to know how to fix this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira