Revision 28e270f9 src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java
b/src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java | ||
---|---|---|
214 | 214 |
|
215 | 215 |
private void updateMetadataForPrivateSharing(final String path, final Map<String, Boolean[]> newPermissions) { |
216 | 216 |
if(newPermissions != null) { |
217 |
PostRequest updateFolder = new PostRequest(app.getApiPath(), folder.getOwnerID(), path) {
|
|
217 |
PostRequest updateFolder = new PostRequest(Pithos.getStorageAPIURL(), folder.getOwnerID(), path) {
|
|
218 | 218 |
@Override |
219 | 219 |
public void onSuccess(Resource result) { |
220 | 220 |
app.updateFolder(folder.getParent(), false, new Command() { |
... | ... | |
231 | 231 |
if(t instanceof RestException) { |
232 | 232 |
if(((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND) { //Probably a virtual folder |
233 | 233 |
final String path1 = folder.getUri(); |
234 |
PutRequest newFolder = new PutRequest(app.getApiPath(), folder.getOwnerID(), path1) {
|
|
234 |
PutRequest newFolder = new PutRequest(Pithos.getStorageAPIURL(), folder.getOwnerID(), path1) {
|
|
235 | 235 |
@Override |
236 | 236 |
public void onSuccess(Resource result) { |
237 | 237 |
updateMetadataForPrivateSharing(path, newPermissions); |
Also available in: Unified diff