bwiner
Posts:
2
From:
Carleton University
Registered:
Feb 3, 2010
|
|
Survey locked by import process
Posted:
Feb 3, 2010 10:45 PM
|
|
Hei,
We created a survey using the plugin API (XMLHandler) but the newly created survey is locked and cannot be unlocked within opinio (not even by the admin user). The only way to unlock the survey is by restarting tomcat.
Here is an example of what we tried:
User adminUser = UserManager.getUser(PluginUtil.getSystemUser(), /* admin */ 1 ); long surveyId = XMLHandler.createSurvey( adminUser, xmlfile, destination ); SurveyManager.updateSurvey( adminUser, surveyId );
We also tried to release the lock explicitly but and exception is raised indicating that the current user (admin) cannot unlock the survey because it has been locked by another user. However, there is only one user in the system.
What are we missing???
Any help would be very much appreciated.
Takk Bruce
|
|
mr.green
Posts:
1
From:
India
Registered:
Feb 1, 2011
|
|
Re: Survey locked by import process
Posted:
Feb 1, 2011 4:29 PM
|
|
This problem might be because of the value of "authenticationType" in your upload XML string. This value should be one of the following: Authentication type: 1: No authentication 2: Authentication on, with a fixed password. 3: Authentication on, with unique passwords per invitee Use the numeric code: <authenticationType>1</authenticationType>
If the value is '0', then the Survey will be shown as "Locked by Import process".
Please reply, if the solution works for you.
|
|
|
|
|