Bug 44947 - oneform editor is broken
Summary: oneform editor is broken
Status: RESOLVED FIXED
Alias: None
Product: Lenya
Classification: Unclassified
Component: Form Editor (show other bugs)
Version: 2.0
Hardware: PC Windows Vista
: P2 major
Target Milestone: 2.0.1
Assignee: Lenya Developers
URL:
Keywords: ErrorMessage
Depends on:
Blocks:
 
Reported: 2008-05-07 02:09 UTC by Matthijs Bierman
Modified: 2008-05-13 02:23 UTC (History)
0 users



Attachments
log4j log (18.63 KB, application/octet-stream)
2008-05-07 06:04 UTC, Matthijs Bierman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthijs Bierman 2008-05-07 02:09:16 UTC
The oneform editor returns the error message: "Involved objects are checked out."

Steps to reproduce:
1. Log in to http://lenya.zones.apache.org:9999/index.html
2. Create a new publication or login to existing one.
3. Create new XHTML page, either Default Sample or Two Column Layout.
4. Go to Authoring mode. Click the new node, select Edit... with one Form
5. Click save.

You will be trapped in the error, there is no possibility of clicking your way out.

Local installation on Windows Vista, Lenya 2.0.x (zip src distribution), jdk1.6.0_05 with standard Jetty 5.1.4 shows the same behaviour.

Any ideas? Can anyone reproduce?
Comment 1 Andreas Hartmann 2008-05-07 02:23:32 UTC
I can reproduce the problem on the zones server, but not in my local sandbox.
Comment 2 Matthijs Bierman 2008-05-07 06:04:24 UTC
Created attachment 21929 [details]
log4j log
Comment 3 Matthijs Bierman 2008-05-07 06:05:20 UTC
Hi Andreas,

I just checked out a fresh svn copy, and was able to reproduce the problem there (after increasing the heap size to prevent OOM errors). Could you compare your working sandbox to the trunk to find out what's different?

Currently I am still evaluating Lenya for use in an upcoming project, but errors like these will be holding me back for a while. I would be willing to dive in deep to try and fix this, but I am currently still getting acquainted with Lenya.

Attached is my log4j.


Matthijs
Comment 4 Andreas Hartmann 2008-05-09 08:42:49 UTC
Strange - I also did a fresh check-out and still can't reproduce it :(
Maybe I can debug it on the Zones server ...
Comment 5 Andreas Hartmann 2008-05-09 08:50:39 UTC
When saving, executeUsecase() in usecases.js is called. Somehow the continuation isn't evaluated.
Comment 6 Andreas Hartmann 2008-05-09 09:30:17 UTC
This issue should be fixed now. The difference between my local working copy and the Zones server is that I have enabled uploads. The source editor now shows an error message if uploads are disabled. Apart from that, the action attribute of the <form> element was missing, which caused an invalid processing of the form data, resulting in the "objects checked out" message.
Comment 7 Matthijs Bierman 2008-05-13 02:23:05 UTC
After update, clean and compile it now works as expected. Thanks Andreas!