[opencms-dev] Login via LoginUser() method - can't create files - URGENT

Trevor Lee Trevor.Lee at 4Loop.com.au
Mon Dec 8 01:18:02 CET 2003


Hi

I have a jsp that allows the user to login to opencms without going to the
opencms login screen using the following method calls:
CmsObject cmso = cms.getCmsObject();
cmso.loginUser(sUsername, sPassword);

Once the user is logged in, the explorer view is displayed in offline mode.
The user is unable to create a html file - the screen is displayed with an
empty drop down list for the "Copy body from:" field and the Template drop
down list only contains the project template.
Also i have noticed the above when i login the user using the opencms login
screen.

I receive the following error in javascript:
Error: uncaught exception: [Exception... "Index or size is negative or
greater than the allowed amount"  code: "1" nsresult: "0x80530001
(NS_ERROR_DOM_INDEX_SIZE_ERR)"  location:
"http://localhost:28080/opencms/opencms/system/workplace/action/explorer_fil
es_new_page.html?initial=true Line: 82"]

As a side note this user was created using the following jsp code:

CmsObject cmso = cms.getCmsObject();
String slogin = cmso.loginUser("admin", "admin");
CmsUser user = cmso.addImportUser(sUsername, cmso.digest(sPassword),
cmso.digest(sPassword), sGroup, sFirstName, sLastName, sEmail,
cmso.C_FLAG_ENABLED, new Hashtable(), sGroup, "", "",
cmso.C_USER_TYPE_SYSTEMUSER);

The user is added to the appropriate groups.

Is there something i am missing in the creation process?

If someone could help that would be great as this is an urgent issue.
Thanks.

Cheers
Trevor




More information about the opencms-dev mailing list