[
https://issues.apache.org/jira/browse/MAILBOX-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jochen Gazda updated MAILBOX-176:
---------------------------------
Description:
Ensure that the use of MailboxConstants.USER_NAMESPACE is not too blind. Some
occurences may come from times when there was no alternative.
Possible replacements for MailboxConstants.USER_NAMESPACE follow:
(a) org.apache.james.mailbox.MailboxSession.getPersonalSpace()
(b) if MailboxConstants.USER_NAMESPACE occurs in new
MaiboxPath(MailboxConstants.USER_NAMESPACE, otherMailboxPath.getUser(),
otherMailboxPath.getName() + ...) then new
MaiboxPath(otherMailboxPath.getNamespace(), otherMailboxPath.getUser(),
otherMailboxPath.getName() + ...) could be a better choice
(c) if MailboxConstants.USER_NAMESPACE occurs in new
MaiboxPath(MailboxConstants.USER_NAMESPACE, ..., somePathFromWireOrConfig) then
MaiboxPath.parse() could be a better choice.
was:Ensure that the use of MailboxConstants.USER_NAMESPACE is not too blind.
Some occurences may come from times when there was no alternative.
> Check the references to MailboxConstants.USER_NAMESPACE
> -------------------------------------------------------
>
> Key: MAILBOX-176
> URL: https://issues.apache.org/jira/browse/MAILBOX-176
> Project: James Mailbox
> Issue Type: Sub-task
> Reporter: Jochen Gazda
> Assignee: Jochen Gazda
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Ensure that the use of MailboxConstants.USER_NAMESPACE is not too blind. Some
> occurences may come from times when there was no alternative.
> Possible replacements for MailboxConstants.USER_NAMESPACE follow:
> (a) org.apache.james.mailbox.MailboxSession.getPersonalSpace()
> (b) if MailboxConstants.USER_NAMESPACE occurs in new
> MaiboxPath(MailboxConstants.USER_NAMESPACE, otherMailboxPath.getUser(),
> otherMailboxPath.getName() + ...) then new
> MaiboxPath(otherMailboxPath.getNamespace(), otherMailboxPath.getUser(),
> otherMailboxPath.getName() + ...) could be a better choice
> (c) if MailboxConstants.USER_NAMESPACE occurs in new
> MaiboxPath(MailboxConstants.USER_NAMESPACE, ..., somePathFromWireOrConfig)
> then MaiboxPath.parse() could be a better choice.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]