Projekt

Allgemein

Profil

GX-Bug #69892

Von Wilken Haase vor fast 2 Jahren aktualisiert

Wenn man ein Bild aus einer ImageListe löscht, wird die Datei auf dem Server nicht auch gleich mit gelöscht, sodass man mit dem selben Namen kein neues Bild hochladen kann. Die Bilddatei sollte gelöscht werden, solange Sie in keiner anderen Imagelist referenziert ist. kann 


 Kann wie folgt reproduziert werden: 

 1. API Request zum Anlegen einer Imagelist durchführen 
 2. der neuen ImageListe ein Bild hochladen 
 3. Das hochgeladene Bild mit dem API Request wieder löschen 


 Erwartetes Ergebnis: 
 Das Bild soll auf dem Server gleich mit gelöscht, werden und nicht zurückbleiben 

 Tatsächliches Ergebnis: 
 Wenn man ein Bild aus einer Liste löscht, wird das Bild auf dem Server nicht gelöscht, es bleibt zurück. 

 ----------- 

 When deleting an image from an ImageList, the file on the server is not deleted as well, so you can't upload a new image with the same name. Image files should get deleted if they're not referenced in another image list. name 


 Can be reproduced as follows: 

 1. make API request to create an ImageList 
 2. upload an image to the new ImageList 
 3. delete the uploaded image again with the API request 


 Expected result: 
 The image should be deleted on the server at the same time and not remain behind. 

 Actual result: 
 When you delete an image from a list, the image is not deleted on the server, it remains behind. 

 ----------- 

 ``` javascript 
 POST /api.php/v3/image-lists HTTP/1.1 
 Host: Shopadresse 
 Content-Type: application/json 
 Authorization: Basic  
 Content-Length: 94 

 [ 
     { 
         "name": "image lists #1" 
     } 
 ] 
 ``` 
 ------------ 

 ``` javascript 
 POST /api.php/v3/image-lists/8/images/subdirectory/image2.png HTTP/1.1 
 Host: Shopadresse 
 Content-Type: image/png 
 Authorization: Basic  
 Content-Length: 281131 

 Binary DATA OF IMAGE 
 ``` 

 ------------ 

 ``` javascript 
 DELETE /api.php/v3/image-lists/8/images/subdirectory/image.png HTTP/1.1 
 Host: Shopadresse 
 Authorization: Basic  
 ``` 

Zurück