You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
present in current master 5686629
issue to create services from shell (PUT, POST)
refactoring: json validation routines are different, depending on call type (cli vs. api, post, put)
USERNAME='username:password'
curl --insecure -s -S -u $USERNAME -H 'Accept: application/json' -X PUT "https://icinga2-test.internal/icingaweb2/director/service" -d @intial_service.json
{"status":"error","message":"Uncaught TypeError: Argument 1 passed to Icinga\\Module\\Director\\RestApi\\IcingaObjectHandler::persistChanges() must be an instance of Icinga\\Module\\Director\\Objects\\IcingaObject, null given, called in \/usr\/share\/icingaweb2\/modules\/director\/library\/Director\/RestApi\/IcingaObjectHandler.php on line 150 and defined in \/usr\/share\/icingaweb2\/modules\/director\/library\/Director\/RestApi\/IcingaObjectHandler.php:170\nStack trace:\n#0 \/usr\/share\/icingaweb2\/modules\/director\/library\/Director\/RestApi\/IcingaObjectHandler.php(150): Icinga\\Module\\Director\\RestApi\\IcingaObjectHandler->persistChanges(NULL)\n#1 \/usr\/share\/icingaweb2\/modules\/director\/library\/Director\/RestApi\/IcingaObjectHandler.php(83): Icinga\\Module\\Director\\RestApi\\IcingaObjectHandler->handleApiRequest()\n#2 \/usr\/share\/icingaweb2\/modules\/director\/library\/Director\/RestApi\/RequestHandler.php(33): Icinga\\Module\\Director\\RestApi\\IcingaObjectHandler->processApiRequest()\n#3 \/usr\/share\/icingaweb2\/modules\/director\/library\/Director\/Web\/Controller\/ObjectController.php(89): Icin"}
API modifiy (POST) call works - in this case, json validation works.
present in current master 5686629
issue to create services from shell (PUT, POST)
refactoring: json validation routines are different, depending on call type (cli vs. api, post, put)
working example with basic data
icingacli - works fine
--> service name is missing in output, but service is created correctly in director
now delete service again
API Issues
API modifiy (POST) call works - in this case, json validation works.
The text was updated successfully, but these errors were encountered: