Revision 28e270f9 src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
b/src/gr/grnet/pithos/web/client/FilePropertiesDialog.java | ||
---|---|---|
261 | 261 |
|
262 | 262 |
if (newFilename != null) { |
263 | 263 |
final String path = file.getParent().getUri() + "/" + newFilename; |
264 |
PutRequest updateFile = new PutRequest(app.getApiPath(), app.getUserID(), path) {
|
|
264 |
PutRequest updateFile = new PutRequest(Pithos.getStorageAPIURL(), app.getUserID(), path) {
|
|
265 | 265 |
@Override |
266 | 266 |
public void onSuccess(Resource result) { |
267 |
updateMetaData(app.getApiPath(), file.getOwnerID(), path, newMeta);
|
|
267 |
updateMetaData(Pithos.getStorageAPIURL(), file.getOwnerID(), path, newMeta);
|
|
268 | 268 |
} |
269 | 269 |
|
270 | 270 |
@Override |
... | ... | |
313 | 313 |
Scheduler.get().scheduleDeferred(updateFile); |
314 | 314 |
} |
315 | 315 |
else |
316 |
updateMetaData(app.getApiPath(), app.getUserID(), file.getUri(), newMeta);
|
|
316 |
updateMetaData(Pithos.getStorageAPIURL(), app.getUserID(), file.getUri(), newMeta);
|
|
317 | 317 |
return true; |
318 | 318 |
} |
319 | 319 |
|
Also available in: Unified diff