• Mail: javax.jcr.PathNotFoundException

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #8581  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?
 #8585  by jllort
 
Connect with some user with administrator grants, you can see there are some folders ( users ), that name.surname exists ?
 #8589  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.
 #8592  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 ?
 #8595  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.
 #8603  by jllort
 
When you're doing without a filter, you doing using user configuration ( tools menu ) ? confirm it
It's a possible bug.
 #8609  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.
 #9015  by pavila
 
I have a doubt: tue user id in LDAP is "name.surname" or "name surname" (note the dot between) ?
 #9030  by sbin
 
Yes there the id ist "name surname" without the dot.
At Mail it is listet as "okm:mail/name.surname" with dot.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.