Skip to content

polycubed: set missing default elements only at initialization time#116

Merged
frisso merged 1 commit intomasterfrom
pr/fix_set_missing_default
Apr 26, 2019
Merged

polycubed: set missing default elements only at initialization time#116
frisso merged 1 commit intomasterfrom
pr/fix_set_missing_default

Conversation

@mauriciovasquezbernal
Copy link
Copy Markdown
Contributor

@mauriciovasquezbernal mauriciovasquezbernal commented Apr 24, 2019

polycubed fills the default elements on a request if they are missing, this
guarantees that the default elements are always set when the request arrives to
the service implementation, hence the developer has not to take care of it.

When an update (PATCH) request is done those fields should not be set, because
their value will be modified even if the client wanted to update other elements.

polycubed fills the default elements on a request if they are missing, this
guarantees that the default elements are always set when the request arrives to
the service implementation, hence the developer has not to take care of it.

When an update (PATCH) request is done those fields should not be set, because
their value will be modified even if the client wanted to update other elements.

Fixes: d8d280c ("Added new REST API and validation code")

Reported-by: Elis Lulja <elis.lulja@gmail.com>
Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
@mauriciovasquezbernal mauriciovasquezbernal force-pushed the pr/fix_set_missing_default branch from c590168 to d200165 Compare April 25, 2019 15:46
@frisso frisso merged commit 07e5aa5 into master Apr 26, 2019
@frisso frisso deleted the pr/fix_set_missing_default branch April 26, 2019 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants