Projekt

Allgemein

Profil

GX-Bug #68475

Von Till Tepelmann vor etwa 3 Jahren aktualisiert

Neue Content-Manager Einträge können ohne "interner Name" angelegt werden, was später beim Auslesen Probleme macht 

 Kann wie folgt reproduziert werden: 

 1. Unter Inhalte->Content-Manager->Elemente->Startseite auf "Neue Inhaltsseite" klicken 
 2. Das Feld Interner Name leer lassen 
 3. Das Feld Überschrift leer lassen 
 4. Auf Speichern klicken 
 5. StyleEdit öffnen 
 6. Ein HTML Widget in die Seite ziehen 
 7. Im Feld Inhaltsname werden keine bereits vorhandene Content-Manager Einträge mehr angezeigt 

 Erwartetes Ergebnis: 
 Das Feld "Interner Name" soll ein Pflichtfeld sein und rot umrandet werden, wenn es leer gelassen wird. 

 Tatsächliches Ergebnis: 
 Man kann Content-Manager Einträge erstellen die komplett leer sind ohne internen Namen, was in der Routine später zu Probleme führt 

 ------ 

 New content manager entries can be created without "internal name", which causes problems later when reading them out 

 Can be reproduced as follows: 

 1. under Contents->Content Manager->Elements->Start Page click on "New Content Page 
 2. leave the field Internal name empty 
 3. leave the Heading field empty 
 4. click on Save 
 5. open StyleEdit 
 6. drag an HTML widget into the page 
 7. no more existing content manager entries are displayed in the Content name field 


 Expected result: 
 The Internal Name field should be a required field and should be outlined in red if left blank. 

 Actual result: 
 You can create Content Manager entries that are completely empty without an internal name, which causes problems in the routine later on. 

 -------- 

 ``` javascript 
 ERROR: Uncaught InvalidArgumentException: Empty title provided in /GXMainComponents/Services/Core/Content/ValueObjects/ContentTitle.inc.php:47 

 { 
     "code": 0, 
     "status": "error", 
     "message": "Empty title provided", 
     "request": { 
         "method": "GET", 
         "url": "", "tt.supp.gambio-server.net", 
         "path": "/GXModules/Gambio/StyleEdit/Api/api.php/styleedit/de/widget/Honeygrid/code", "/stable/GXModules/Gambio/StyleEdit/Api/api.php/styleedit/de/widget/Honeygrid/code", 
         "uri": { 
             "root": "/GXModules/Gambio/StyleEdit/Api/api.php/styleedit/de/widget/Honeygrid/code", "/stable/GXModules/Gambio/StyleEdit/Api/api.php/styleedit/de/widget/Honeygrid/code", 
             "resource": "" 
         } 
     }, 
     "error": { 
         "file": "/GXMainComponents/Services/Core/Content/ValueObjects/ContentTitle.inc.php", 
         "line": 47, 
         "stack": [ 
             { 
                 "file": "/system/core/MainFactory.inc.php(331) : eval()'d code", 
                 "line": 4, 
                 "function": "__construct", 
                 "class": "ContentTitle", 
                 "type": "->" 
             }, 
             { 
                 "file": "/system/core/MainFactory.inc.php", 
                 "line": 331, 
                 "function": "eval" 
             }, 
             { 
                 "file": "/system/core/MainFactory.inc.php", 
                 "line": 291, 
                 "function": "create_object", 
                 "class": "MainFactory", 
                 "type": "::" 
             }, 
             { 
                 "file": "/GXMainComponents/Services/Core/Content/Repositories/ThemeContentsParser.php", 
                 "line": 294, 
                 "function": "create", 
                 "class": "MainFactory", 
                 "type": "::" 
             }, 
             { 
                 "file": "/GXMainComponents/Services/Core/Content/Factories/ContentValueObjectFactory.php", 
                 "line": 468, 
                 "function": "createLocalizedCollection", 
                 "class": "ThemeContentsParser", 
                 "type": "::" 
             }, 
             { 
                 "file": "/GXMainComponents/Services/Core/Content/Factories/ContentValueObjectFactory.php", 
                 "line": 66, 
                 "function": "createContentTitleCollection", 
                 "class": "ContentValueObjectFactory", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXMainComponents/Services/Core/Content/Repositories/ContentRepository.php", 
                 "line": 193, 
                 "function": "createValueObjectsForInfoElementContent", 
                 "class": "ContentValueObjectFactory", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXMainComponents/Services/Core/Content/Repositories/ContentRepository.php", 
                 "line": 326, 
                 "function": "createInfoElementContent", 
                 "class": "ContentRepository", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXMainComponents/Services/Core/Content/Services/ContentReadService.php", 
                 "line": 61, 
                 "function": "getAllInfoElements", 
                 "class": "ContentRepository", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXModules/Gambio/Widgets/Code/Classes/CodeWidget.php", 
                 "line": 84, 
                 "function": "getAllInfoElements", 
                 "class": "ContentReadService", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXModules/Gambio/StyleEdit/Core/Components/Widget/WidgetController.php", 
                 "line": 97, 
                 "function": "apiData", 
                 "class": "CodeWidget", 
                 "type": "::" 
             }, 
             { 
                 "file": "/GXModules/Gambio/StyleEdit/Api/Controllers/StyleEditController.php", 
                 "line": 172, 
                 "function": "get", 
                 "class": "Gambio\\StyleEdit\\Core\\Components\\Widget\\WidgetController", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXModules/Gambio/StyleEdit/Api/config/routes.php", 
                 "line": 29, 
                 "function": "get", 
                 "class": "Gambio\\StyleEdit\\Api\\Controllers\\StyleEditController", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php", 
                 "line": 43, 
                 "function": "{closure}" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/Routing/Route.php", 
                 "line": 381, 
                 "function": "__invoke", 
                 "class": "Slim\\Handlers\\Strategies\\RequestResponse", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/MiddlewareDispatcher.php", 
                 "line": 81, 
                 "function": "handle", 
                 "class": "Slim\\Routing\\Route", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/MiddlewareDispatcher.php", 
                 "line": 81, 
                 "function": "handle", 
                 "class": "Slim\\MiddlewareDispatcher", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/Routing/Route.php", 
                 "line": 341, 
                 "function": "handle", 
                 "class": "Slim\\MiddlewareDispatcher", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/Routing/RouteRunner.php", 
                 "line": 84, 
                 "function": "run", 
                 "class": "Slim\\Routing\\Route", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php", 
                 "line": 107, 
                 "function": "handle", 
                 "class": "Slim\\Routing\\RouteRunner", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/MiddlewareDispatcher.php", 
                 "line": 140, 
                 "function": "process", 
                 "class": "Slim\\Middleware\\ErrorMiddleware", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/MiddlewareDispatcher.php", 
                 "line": 81, 
                 "function": "handle", 
                 "class": "class@anonymous\u0000/vendor/slim/slim/Slim/MiddlewareDispatcher.php:127$4c0", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/App.php", 
                 "line": 215, 
                 "function": "handle", 
                 "class": "Slim\\MiddlewareDispatcher", 
                 "type": "->" 
             }, 
             { 
                 "file": "/vendor/slim/slim/Slim/App.php", 
                 "line": 199, 
                 "function": "handle", 
                 "class": "Slim\\App", 
                 "type": "->" 
             }, 
             { 
                 "file": "/GXModules/Gambio/StyleEdit/Api/api.php", 
                 "line": 158, 
                 "function": "run", 
                 "class": "Slim\\App", 
                 "type": "->" 
             } 
         ] 
     } 
 } 
 ``` 

Zurück