| Summary: | Issues when mounting Orion file system to Orion Node. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Node | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | john.arthorne, mamacdon, simon_kaegi |
| Version: | 1.0 | ||
| Target Milestone: | 2.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
libing wang
I've changed the abstraction to a generic one. Basically when the resource location contains the host in the URL, not only the search but also the copying does not work well. In the copy case: 1. If you copy from Orion file system to Node file system, the fileClient assumes that the source location always starts with "/" then it adds "depth=1" at the end. If the source location starts with a host name, then the fetch children will fail because there is no "depth=1" added. 2. If you copy from Orion node to Orion, the write file request fails. The solution of the copy issue seems to be simple:
If I remove line 5 6and 58 in fileClient.js like this
//if (sourceLocation.indexOf("/") === 0) { //$NON-NLS-0$
sourceLocation += "?depth=1"; //$NON-NLS-0$
//}
The copy works because the fetch children returns something.
But I am nor quite sure why line 56 was there before, need to talk to Simon later.
|