You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2012/05/16 15:35:02 UTC
[jira] [Created] (JCR-3312) AbstractSession.getItem should deal
with identifier paths
Julian Reschke created JCR-3312:
-----------------------------------
Summary: AbstractSession.getItem should deal with identifier paths
Key: JCR-3312
URL: https://issues.apache.org/jira/browse/JCR-3312
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-jcr-commons
Reporter: Julian Reschke
Assignee: Julian Reschke
In OAK's SessionImpl, we currently do:
@Override
public Item getItem(String absPath) throws PathNotFoundException, RepositoryException {
if (absPath.startsWith("[") && absPath.endsWith("]")) {
// TODO OAK-23 - maybe this code should be added in AbstractSession
return getNodeByIdentifier(absPath.substring(1, absPath.length() - 1));
} else {
return super.getItem(absPath);
}
}
AbstractSession could do this on it's own.
--
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
[jira] [Resolved] (JCR-3312) AbstractSession.getItem should deal
with identifier paths
Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke resolved JCR-3312.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.6
> AbstractSession.getItem should deal with identifier paths
> ---------------------------------------------------------
>
> Key: JCR-3312
> URL: https://issues.apache.org/jira/browse/JCR-3312
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-commons
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Fix For: 2.6
>
>
> In OAK's SessionImpl, we currently do:
> @Override
> public Item getItem(String absPath) throws PathNotFoundException, RepositoryException {
> if (absPath.startsWith("[") && absPath.endsWith("]")) {
> // TODO OAK-23 - maybe this code should be added in AbstractSession
> return getNodeByIdentifier(absPath.substring(1, absPath.length() - 1));
> } else {
> return super.getItem(absPath);
> }
> }
> AbstractSession could do this on it's own.
--
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
[jira] [Updated] (JCR-3312) AbstractSession.getItem should deal
with identifier paths
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-3312:
-------------------------------
Fix Version/s: (was: 2.6)
2.5
> AbstractSession.getItem should deal with identifier paths
> ---------------------------------------------------------
>
> Key: JCR-3312
> URL: https://issues.apache.org/jira/browse/JCR-3312
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-commons
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Fix For: 2.5
>
>
> In OAK's SessionImpl, we currently do:
> @Override
> public Item getItem(String absPath) throws PathNotFoundException, RepositoryException {
> if (absPath.startsWith("[") && absPath.endsWith("]")) {
> // TODO OAK-23 - maybe this code should be added in AbstractSession
> return getNodeByIdentifier(absPath.substring(1, absPath.length() - 1));
> } else {
> return super.getItem(absPath);
> }
> }
> AbstractSession could do this on it's own.
--
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