yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89857
[Bug 1993005] [NEW] Swift file upload fails on zed with "This name already exists." for non-existing files
Public bug reported:
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.error(angular.noop);
+ return promise.catch(angular.noop);
}
- return promise.error(function () {
+ return promise.catch(function onError() {
toastService.add('error', gettext('Unable to get details of the object.'));
});
}
If I revert these 2 lines of code, I'm able to upload a file again
without the error.
** Affects: horizon
Importance: Undecided
Status: New
** Affects: horizon (Ubuntu)
Importance: High
Status: Triaged
** Also affects: horizon (Ubuntu)
Importance: Undecided
Status: New
** Changed in: horizon (Ubuntu)
Status: New => Triaged
** Changed in: horizon (Ubuntu)
Importance: Undecided => High
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1993005
Title:
Swift file upload fails on zed with "This name already exists." for
non-existing files
Status in OpenStack Dashboard (Horizon):
New
Status in horizon package in Ubuntu:
Triaged
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.error(angular.noop);
+ return promise.catch(angular.noop);
}
- return promise.error(function () {
+ return promise.catch(function onError() {
toastService.add('error', gettext('Unable to get details of the object.'));
});
}
If I revert these 2 lines of code, I'm able to upload a file again
without the error.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1993005/+subscriptions
Follow ups