Swift file upload fails on zed with "This name already exists." for non-existing files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Unassigned | ||
horizon (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Swift file upload fails on zed with "This name already exists." for non-existing files.
Please see attached screenshot for the behavior.
I've narrowed this down to a change in 'function getObjectDetails' in swift.service.js.
The 'Migrate to AngularJS v1.8.2' change in commit f044c4b0a3 updated the file with:
@@ -297,9 +297,9 @@
);
if (ignoreError) {
// provide a noop error handler so the error is ignored
- return promise.
+ return promise.
}
- return promise.
+ return promise.
});
}
If I revert these 2 lines of code, I'm able to upload a file again without the error, however I'm also able to upload it twice and overwrite the existing file the 2nd time.
Update: Specifically reverting the first LOC to the following seems to fix this:
return promise.
Changed in horizon (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
description: | updated |
Changed in horizon (Ubuntu): | |
importance: | High → Medium |
Changed in horizon: | |
status: | New → In Progress |
Proposed fix: https:/ /review. opendev. org/c/openstack /horizon/ +/874351