Bug 1076052
Summary: | Getting NullPointerException when creating resource using REST API | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Jan Bednarik <jbednari> |
Component: | REST | Assignee: | Libor Zoubek <lzoubek> |
Status: | CLOSED DUPLICATE | QA Contact: | Mike Foley <mfoley> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.10 | CC: | mkoci, theute |
Target Milestone: | --- | ||
Target Release: | RHQ 4.11 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-14 09:32:45 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Bednarik
2014-03-13 12:39:57 UTC
Resource body you're sending is incorrect, you've nested resource properties into resourceConfig, it should have been: {"resourceName": "testScriptServer-rest", "pluginName": "Script", "parentId": --your platform ID--, "typeName": "Script Server","resourceConfig": {}, "pluginConfig": {"escapeCharacter": "\\", "executable": "/bin/cat","quotingEnabled": true}} but it seems REST api does not handle pluginConfig at all. *** This bug has been marked as a duplicate of bug 958922 *** |