Fix ALFCOM-3628, ALFCOM-3629

- impossible to download / edit offline in Share
- fixed ContentGet webscript refactoring which didn't take into account /filename.ext extension on urls

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17373 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2009-11-06 17:03:40 +00:00
parent 85f63ce0e7
commit 132a5989d8

View File

@@ -65,7 +65,11 @@ public class ObjectIdReference extends AbstractObjectReference
}
StoreRef storeRef = repo.getStoreRef();
reference = new String[] {storeRef.getProtocol(), storeRef.getIdentifier(), this.id};
String[] idParts = this.id.split("/");
reference = new String[2 + idParts.length];
reference[0] = storeRef.getProtocol();
reference[1] = storeRef.getIdentifier();
System.arraycopy(idParts, 0, reference, 2, idParts.length);
}
/*