-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] PostObjectConfigUpdate unexpected removal of DEFAULT section
Bug example: $ ox foo unset --kw fs#1.disable' => removal of DEFAULT section What happens: POST /.../foo/config/update?delete=&unset=fs%231.disable => deletes is []string{""} SectionsByName("") returns "DEFAULT" the DEFAULT section is removed - PostObjectConfigUpdate filters "" from params.Delete - keyop.ParseOps filters out any invalid operations (based on IsZero) - key.ParseStrings filters out any invalid keyword (based on IsZero) - key.Parse returns zero key.T on invalid string Now Post object update with empty changes returns 400: No valid update requested
- Loading branch information
Showing
5 changed files
with
157 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters