[opencms-dev] Duplicate Entry Exception While CmsObject.LoginUser() - Please Help urgent

Nacho Fernández Orellana nacho.fernandez.orellana at gmail.com
Tue Jun 2 08:33:03 CEST 2009


Dear Govind and list,

I am sorry I don't undestand your line
>Can i check the logged in User from the CmsObject which i cam compare with
who is logging in.

Anyway, by the very nature of OpenCms, you can find its source code and
modify it to suit your needs in your own installation (see LGPL license
terms if in doubt). I remind you that simply having many users logging into
the workplace with the same username should not be enough to reproduce the
problem, they are unlikely to log in overlapping that block of code (two
users after deleting user info and while inserting) loggin manually. We
reproduced it by "artificial" means (simulating multiple request threads).

If you are willing to modify the core code of OpenCms for your use, just
download it (there are other posts about getting and compiling OpenCms'
source), get to the method I mentioned earlier and synchronize either the
block of code that deletes and then inserts or the method itself. I hope
this helps. Greetings,

Nacho Fernandez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090602/3d483de2/attachment.htm>


More information about the opencms-dev mailing list