Project

General

Profile

Actions

Bug #3770

closed

API calls using JSON content instead of parameters are ignored

Added by Vincent MEMBRÉ over 11 years ago. Updated over 11 years ago.

Status:
Released
Priority:
1 (highest)
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When calling /api/directives/id with json parameters to update a directive only the one using parameters is working.

If you call this with a JSON data, this will be ignored by the API.

This is due to some pattern matching in Scala :

 case Post id :: Nil, req => ...

 case id :: Nil JsonPost, req => ...

The first case includes the second one, so the jsonPost is never matched.

Actions

Also available in: Atom PDF