Page 1 of 1

Mail: javax.jcr.PathNotFoundException

PostPosted:Wed Feb 02, 2011 12:21 pm
by sbin
OpenKM 5.0.1
I try to fetch mail from an imap server.
The user names are prename.surname (with a dot between prename and surname).
Now I get the following error:
Code: Select all
javax.jcr.PathNotFoundException: okm:mail/prename surname
        at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2752)
        at com.openkm.module.direct.DirectFolderModule.create(DirectFolderModule.java:214)
        at com.openkm.api.OKMFolder.create(OKMFolder.java:61)
        at com.openkm.util.MailUtils.createGroupPath(MailUtils.java:529)
        at com.openkm.util.MailUtils.importMail(MailUtils.java:440)
        at com.openkm.util.MailUtils.importMessages(MailUtils.java:390)
        at com.openkm.core.UserMailImporter.run(UserMailImporter.java:57)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
How you can see, here is the prename and surname separated with an " " space.
Any idea to fix that?

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Wed Feb 02, 2011 8:13 pm
by jllort
Connect with some user with administrator grants, you can see there are some folders ( users ), that name.surname exists ?

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Wed Feb 02, 2011 11:17 pm
by sbin
yes, the folder name.surname exists. When I create a mail filter and declare name.surname as a folder, all works correct. But without this filter I get this error where name and surname are separated with a space instead of a dot.

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Thu Feb 03, 2011 7:32 am
by jllort
What do you mean when you said "I create a mail filter", are you talking about mail filter in user administration ( define user mails and there define filters) ? When you create a filter ( some rule equals to username.surname ) to some openkm folder ( okm:mail/username.surname) then runs rights ... it's correct ?

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Thu Feb 03, 2011 8:44 am
by sbin
Yes, exact, I'm talking about user administration, mails and there filters.
In "Create mail filter" I added "Folder: okm:mail/username.surname". Nothing else.
Then e-mail will be fetched in this openkm Folder. But without a Filter I get the error message.

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Fri Feb 04, 2011 9:49 am
by jllort
When you're doing without a filter, you doing using user configuration ( tools menu ) ? confirm it
It's a possible bug.

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Fri Feb 04, 2011 10:22 am
by sbin
No, I go over Administration, User, Mail and there without a filter.
When I go over tools menu, nothing happens. I mean no Mails will be fetched!? If any only over Administration, User, Mail, mails will be fetched.

I think it has something to do with the AD authorisation. If I go to administration->user, I see
Code: Select all
ID               Name                                             Mail                     ...
name surname     com.openkm.principal.LdapPrincipalAdapter      Name.Surname@mydomain.de   ...
Interesting is, that the Id is uncapitalised (normal is capitalised: Name Surname (cn)). Like the mail-address.
I do the login with the sAMAccountName=name.surname.
So it seems there is something wrong with my configuration and/or a bug in OpenKM.

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Fri Feb 04, 2011 3:53 pm
by sbin
Hmm, I think here http://forum.openkm.com/viewtopic.php?f ... 6044#p7439
is also a problem which I have too.
Could at be, that the dot between name and surname make all the trouble?

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Sat Feb 05, 2011 11:33 am
by jllort
I've added in our tracking system due possible bug, we'll investigate http://issues.openkm.com/view.php?id=1547

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Mon Feb 21, 2011 3:20 pm
by pavila
I have a doubt: tue user id in LDAP is "name.surname" or "name surname" (note the dot between) ?

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Mon Feb 21, 2011 3:25 pm
by sbin
The sAMAccountName is "name.surname" with the dot between name and surname.

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Mon Feb 21, 2011 4:43 pm
by pavila
But at Administration->User is listed without the dot?

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Mon Feb 21, 2011 7:34 pm
by sbin
Yes there the id ist "name surname" without the dot.
At Mail it is listet as "okm:mail/name.surname" with dot.

Re: Mail: javax.jcr.PathNotFoundException

PostPosted:Tue Feb 22, 2011 11:22 am
by pavila
I can't understand why the dot is changed to an space :shock: