Projekt

Allgemein

Profil

Aktionen

GX-Bug #69892

geschlossen

Wenn man ein Bild aus einer ImageListe löscht, wird die Datei auf dem Server nicht mitgelöscht / If you remove an image out of an Imagelist the image file will not be deleted

Von Till Tepelmann vor fast 2 Jahren hinzugefügt. Vor mehr als 1 Jahr aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
-
Kategorie:
REST-API
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.6.0.0, 4.7.1.0 beta1
Release Notes Langtext:

Wenn man ein Bild aus einer Bilderkollektion löscht, wird die Datei auf dem Server mitgelöscht, wenn es in keinem anderen Produkt und keiner anderen Bilderkollektion verwendet wird


Beschreibung

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 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.

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.


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

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

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

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

Aktionen

Auch abrufbar als: Atom PDF