PATCH Error Message for op Property Needs to Return Valid Operations

Bug #1408296 reported by William Brothers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppy
New
Low
Unassigned

Bug Description

When a string is enter for the op property that is not one of the following:

add
replace
remove

The error message should return a list of the valid values.

Currently the message states that the string enter is an unknown operation.

Example:
[{"op": "str",
  "path": "/restrictions"
 }
]

Result:
{
"message": "Unknown operation u'str'"
}

summary: - PATCH op Property Needs to Return Valid Operations
+ PATCH Error Message for op Property Needs to Return Valid Operations
Changed in poppy:
importance: Undecided → Medium
milestone: none → kilo-2
Obulapathi (obulpathi)
Changed in poppy:
assignee: nobody → Obulapathi (obulpathi)
Changed in poppy:
milestone: kilo-2 → kilo-3
Changed in poppy:
assignee: Obulapathi (obulpathi) → nobody
Changed in poppy:
milestone: kilo-3 → liberty-1
Changed in poppy:
milestone: liberty-1 → none
Changed in poppy:
importance: Medium → Low
Revision history for this message
Isaac Mungai (isaac-mun) wrote :

Looking at the code, this bug should be resolved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.