diff --git a/barbican/common/validators.py b/barbican/common/validators.py index 7984b9c49..b9c538c2f 100644 --- a/barbican/common/validators.py +++ b/barbican/common/validators.py @@ -730,8 +730,8 @@ class ContainerConsumerValidator(ValidatorBase): self.schema = { "type": "object", "properties": { - "URL": {"type": "string", "minLength": 1}, - "name": {"type": "string", "maxLength": 255, "minLength": 1} + "URL": {"type": "string", "maxLength": 255, "minLength": 1}, + "name": {"type": "string", "maxLength": 36, "minLength": 1} }, "required": ["name", "URL"] } diff --git a/releasenotes/notes/fix-story-2009672-d64ef6c10444f517.yaml b/releasenotes/notes/fix-story-2009672-d64ef6c10444f517.yaml new file mode 100644 index 000000000..2503aa0b6 --- /dev/null +++ b/releasenotes/notes/fix-story-2009672-d64ef6c10444f517.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed Story #2009672 - Fixed validator for Container Consumers to prevent + 500 errors.