[
http://jira.nuxeo.org/browse/NXP-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38709#action_38709
]
Radu Darlea commented on NXP-2507:
----------------------------------
<quote>
Do you use Windows ? I've found the problem is totally repeatable.
Just install fresh NuxeoEP-5.1.5 on any windows machine. Create folders
structure. Export it. And then try to import. Imported files and folders will
be flatly live in the same folder. The flatten imported documents is all named
something like "\workspaces\...\..." when I "ls" it via NuxeoShell.
I tried browsing nuxeo's sources and find this suspicious piece of code from
"XMLDirectoryReader.java"
112 /*NXP-1688 Rux: the path was somehow left over when migrated from
113 core 1.3.4 to 1.4.0. Pull back.*/
114 private Path computeRelativePath(File file) {
115 return new Path(
116
file.getAbsolutePath().substring(source.getAbsolutePath().length()));
117 }
Any idea ?
</quote>
yes, this preserve OS path name separator while Nuxeo requires "/" explicitly.
> Preserve the directory structure when importing
> -----------------------------------------------
>
> Key: NXP-2507
> URL: http://jira.nuxeo.org/browse/NXP-2507
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Core
> Affects Versions: 5.1.5
> Environment: Reproducible only on Windows systems
> Reporter: Radu Darlea
> Assignee: Radu Darlea
> Fix For: 5.1.6
>
> Original Estimate: 1 day
> Time Spent: 6 hours
> Remaining Estimate: 2 hours
>
> Steps to reproduce:
> - start the shell on a Windows machine
> - connect to a Nuxeo server
> - export a directory structure
> - import it back
> The files and folders will be imported all in the same directory: the
> destination to import.
> The reason is that while the path is read on Windows with "\", it has no
> meaning in Nuxeo, which requires "/" as path separator.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets