Actions
Bug #26232
closedOverride Values API - request fails if the matcher attribute name has space or dot(.) character
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Description
From BZ:
Steps:
1. Attempt to update the override value by PUTing on satellite with overrides matcher instead of its id. e.g:- curl -u admin:changeme -X PUT -d '{"value":"overridened3"}' --header "Content-Type:application/json" "https://<server_url>/api/v2/puppetclasses/1/smart_class_parameters
/3/override_values/os=rhel7.6"
Observation and Logs:
PUT request fails if the matcher attribute name has space or dot(.) character.
- curl -X PUT -d '{"value":"overridened3"}' --header "Content-Type:application/json" "https://<server_url>/api/v2/puppetclasses/1/smart_class_parameters/3/override_values/os=rhel7.6"
{
"error": {"message":"Resource override_value not found by id 'os=rhel7'"
}
- curl
X PUT -d '{"value":"overridened3"}' --header "Content-Type:application/json" "https://<server_url>/api/v2/puppetclasses/1/smart_class_parameters/3/override_values/os=rhel 7"//IETF//DTD HTML 2.0//EN">
<!DOCTYPE HTML PUBLIC "
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
Actions