MartinoMensio / DP2-Labs

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

Assignment 3 policy name checking #38

Closed MartinoMensio closed 7 years ago

MartinoMensio commented 7 years ago

Since XML validation is done against the schema and since policies are stored into the service via PUT, the service must be sure that the name of the policy follows the rules defined in the schema.

For this reason, the service must compare the name provided in the body with the name in the path, if they differ it must reject the request.

Cannot solve this problem by simply overwriting the name from the path to the body because I won't do path validation