New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal server error when exporting and importing questionnaire on same instance #4017
Comments
Thank you @yevon This is a known limitation, you could not have duplicated questionnaires on the system because each question has unique IDs. |
Ok, just received an email with additional logs, it seems that unique constraint for the questionnaire is raising an exception: sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: questionnaire.id |
So if I just want to create new versions, I have to copy it, export the questionarie, import it to another instance, and make it the default for new reports. ok! |
It would be nice that it just prompts you to import it as a new questionaire instead of raising an unexpected error, this way you could easily create new versions of the questionaire, and just change the context to the new version of the questionarie. Is this the correct approach to this? |
I can think about to two solutions for this:
|
What version of GlobaLeaks are you using?
4.14.8
What browser(s) are you seeing the problem on?
Chrome
What operating system(s) are you seeing the problem on?
Windows
Describe the issue
I'm trying to export and import a questionnarie between instances, but it just says Error! and nothing more, the http response is an internal server error. Exactly the same happens if I try to export and import in the same instance. I don't see anything special in the logs file located at:
/var/globaleaks/log/globaleaks.log
The http response just says:
{
"error_message": "InternalServerError [Unexpected]",
"error_code": 1,
"arguments": [
"Unexpected"
]
}
Are there some additional logs that I might check? Or can I pass the questionnaire file privately to review it? Thanks!
Proposed solution
No response
The text was updated successfully, but these errors were encountered: