[daisy] [JIRA] Commented: (DSY-378) Better warning message when
blobstore is locked.
Min Idzelis (JIRA)
issues at cocoondev.org
Tue May 29 09:35:46 CDT 2007
[ http://issues.cocoondev.org//browse/DSY-378?page=comments#action_13201 ]
Min Idzelis commented on DSY-378:
---------------------------------
Besides the unfriendly error message - there's a bigger issue here.
When the repository is locked, the user can still enter the "new document" editor. They user may spend an hour entering text, then they press "save." Now the user gets an error message above. They press the <back> button in the browser. All their data they entered is LOST! This happens anytime there is ANY error during save which is pretty bad if you ask me.
Also see issue: DSY-425 for another problem that has this "data loss on save" situation.
A decent way to fix this is to use a little bit of AJAX magic - which I see has been creeping its way into Daisy 2.0 (great!)
What you could do is submit the form using ajax. If there is an error, you are still on the same page - therefore have all the data you have entered intact. If the ajax submit is successful, then you can proceed with the flow to the page display. Using ajax to submit also can also let you display progress bars (kinda fancy) and handle errors better. (Continuation id not valid, etc)
Maybe a separate issue should be logged for - "data loss when error on save" - please let me know if you want me to do this.
Getting back to the problem brought up originally by this defect - you can also disable the new document selection page when the repository is locked.
> Better warning message when blobstore is locked.
> ------------------------------------------------
>
> Key: DSY-378
> URL: http://issues.cocoondev.org//browse/DSY-378
> Project: Daisy
> Type: Improvement
> Components: Frontend (wiki), Repository
> Versions: 1.5
> Reporter: Min Idzelis
> Priority: Minor
>
> Messages below often confuse our users. They should be more friendly. (Fields, Doctypes should not just specify the id - maybe the name of the field/doctype too)
> > Sitemap: error calling continuation
> > Received exception from repository server.
> > Problem storing document.
> > Error storing part data to blobstore.
> > Write access to the blobstore is currently disabled. Try again later.
>
> (the above happened when saving a document while it is locked)
> Sitemap: error calling continuation
> The document contains a not-allowed field (FieldType ID: 14).
> (This happens after the doctype had a field deleted, but a document still had a reference to that field)
> Having the name of the fieldtype would also be useful - also, a helpful hint like "Please delete this field before trying to save." would be helpful)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the daisy
mailing list