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