Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Persist jcr/xml in hierarchy path structure. #51

Closed
wants to merge 2 commits into from

Conversation

lsitu
Copy link
Contributor

@lsitu lsitu commented Aug 14, 2014

https://www.pivotaltracker.com/s/projects/684825/stories/75644184
I've updated it to persist the jcr/xml as suggested: a structure like [basedir]/localhost/8080/rest/123.jcr.xml.

@@ -74,12 +76,24 @@ public JcrXmlPersistenceIndexer(final String pathName) {

@Override
public File call() throws IOException {
// strip http protocol and replace column(:)
String fullPath = id.substring(id.indexOf("//") + 2).replace(":", "/");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many identifiers will be of the form "pid:55".
I suspect we only want to replace the ":" if it is associated with a port, not all colons.
However, we should appropriately encode the URI that is being converted to a directory path so that the converted characters are valid on the three filesystems: Mac, Windows, Linux

@awoods
Copy link

awoods commented Aug 15, 2014

Resolved with: 9815690

@awoods awoods closed this Aug 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants