Closed (fixed)
Project:
Cloud
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Nov 2018 at 10:18 UTC
Updated:
12 Dec 2018 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
xiaohua guan commentedComment #3
xiaohua guan commentedI explain my fix as following.
I add code to check the owner of the image before deleting it. If the ower is not the current user, I will skip the operation DeregisterImage.
In addition, because the property "owner" isn't set when creating a new image, I also add code to set the property.
Comment #4
xiaohua guan commentedComment #5
xiaohua guan commentedRemove wrong comment.
Errors like below occurred.
Comment #6
xiaohua guan commentedRemove wrong comment.
I added a composer.json file, where add the dependency to package aws-sdk-php.
Comment #7
yas@xiaohua-guan Thank you for your patch. I tested your patch manually and it looks working fine. However, to make sure that the error does not return, can you make a test for that patch?
Comment #8
xiaohua guan commented@yas
Ok. I will add a test case for the patch.
Comment #9
xiaohua guan commentedComment #10
xiaohua guan commentedComment #11
xiaohua guan commented@yas
I added a test case to delete image imported, which has different owner.
Please review the patch file 3013583_20181115.patch.
Comment #12
yas@xiaohua-guan Thank you for your update, it looks good to me.
@baldwinlouie How do you think?
Comment #13
baldwinlouie commented@yas, Looks good! Thank you for the patch.
Comment #15
yas@xiaohua-guan
@baldwinlouie
Thank you for your contributions. I pushed the code and close this issue.
Comment #16
xiaohua guan commentedComment #17
xiaohua guan commented@yas
Following error occurred in the automated testing of the branch.
https://www.drupal.org/pift-ci-job/1122274
Drupal\Component\Serialization\Exception\InvalidDataTypeException: yaml_parse(): parsing error encountered during parsing: did not find expected node content (line 21, column 20), context while parsing a block node (line 21, column 20)
The error is due to my mistake in the patch 3013583_20181115.patch. I am sorry.
I provided a new patch file 3013583_20181116.patch, could you review it?
Comment #18
xiaohua guan commentedComment #20
yasOK, I pushed the patch.
Comment #21
yasComment #22
yas