Projekt

Allgemein

Profil

GX-Bug #69884

Von Till Tepelmann vor fast 2 Jahren aktualisiert

Wenn man über die REST API neue Optionen und Werte anlegt, aber nur eine Sprache übermittelt, dann werden leeren Einträge geschrieben, sodass nach dem Import im Gambio Admin die Seite "Optionen" nicht mehr aufrufbar ist 


 Kann wie folgt reproduziert werden: 

 1. Shop 4.6 installieren 
 2. API Request über POSTMAN ausführen 
 3. Gambio Admin "Artikel->Optionen" aufrufen 

 --------- 


 When creating new options and values via the REST API, but only submitting one language, empty entries are written so that after importing in the Gambio Admin, the "Options" page is no longer accessible 


 Can be reproduced as follows: 

 1. install Shop 4.6 
 2. execute API request via POSTMAN 
 3. open Gambio Admin "Products->Options 

 ------- 


 Admin label can not be whitespace only 

 --------- 

 POST /api.php/v3/options /nightly/api.php/v3/options HTTP/1.1 
 Host: shopdomain tt.supp.gambio-server.net 
 Content-Type: application/json 
 Authorization:  
 Basic dGVzdG1haWxAZ2FtYmlvLmRlOjEyMzQ1 
 Content-Length: 616 

 ``` javascript 
 [ 
     { 
         "type": "Dropdown", 
         "sortOrder": 1, 
         "details": [ 
             { 
                 "languageCode": "en", 
                 "label": "Size", 
                 "adminLabel": "Size (T-Shirts)", 
                 "description": "An additional description ..." 
             } 
         ] 
     }, 
     { 
         "type": "Dropdown", 
         "sortOrder": 1, 
         "details": [ 
             { 
                 "languageCode": "de", 
                 "label": "Size", 
                 "adminLabel": "Size (T-Shirts)", 
                 "description": "An additional description ..." 
             } 
         ] 
     } 
 ] 
 ``` 

Zurück