[opencms-dev] Have found a problem with direct edit
entery
entery at gmx.net
Tue Jan 10 19:24:33 CET 2006
Hi to all,
we have a problem with the direct edit function for xml-content.
If 2 users click at the same time on the "green plus" for a new source
creating, the editor creates for both the same file starting with ~. If
someone saves, both get anytime the same failure, that the other user
holds the lock. For instance, nobody has really the lock.
Closing the editor and one steal the lock, mostly shown, the own user
account holds it, save the tempfile and begins writing content. the
other creates after saving a new file, e.g. through pushing again the
button for new source over direct edit.
I know, the form sends the request, that the collector should search for
all known files of the specified content type in a specified
directory. Then a new one is created. But named with ~, for first
declaring it to a tempfile.
Perhaps, this problem could be solved through synchronising the threads
or perhaps by regarding the tempfiles also during creating, or declaring
and choosing the name by the saving step (as last step of creating).
Now to concurrent working user disturb each other and unpractised users
would capitulate after writing the whole file and on saving everything
is lost, all work was useless.
Thanks a lot for help or conclusions.
Best regards,
Andreas.
More information about the opencms-dev
mailing list