MartinoMensio / DP2-Labs

Distributed Programming 2 Laboratories @ Polytechnic University of Turin
MIT License
1 stars 0 forks source link

Assignment 3 request checking #27

Closed MartinoMensio closed 7 years ago

MartinoMensio commented 7 years ago

The server should check the body of POST requests in order to accept only correct data. The checking must be done for:

MartinoMensio commented 7 years ago

check key and keyref

MartinoMensio commented 7 years ago

This feature will be delayed due to the fact that the professor still needs to explain his validation method

MartinoMensio commented 7 years ago

Doing with schema validation (commits a8f2568 9f73b1f )

MartinoMensio commented 7 years ago

Need to distinguish malformed requests (HTTP status 400) from not valid xml (HTTP status 422).

This could be done by using two unmarshaller: the first one not validating and the second one validating

MartinoMensio commented 7 years ago

not valid or malformed --> 400

422 is only for missing references