When creating an artifact with a very long group name, the issue is caught in the database as a constrain violation, and the resulting HTTP code is 500. We should validate inputs at a higher level, before the request is being processed. In the control plane, we use javax.validation annotations on the DTOs i.e. https://github.com/bf2fc6cc711aee1a0c2a/srs-fleet-manager/blob/main/core/src/main/java/org/bf2/srs/fleetmanager/rest/service/model/RegistryCreateDto.java#L36 , and quarkus-hibernate-validator extension. In Registry, we could do the same if there are suitable DTOs, or validate on REST API beans, which would require updating the codegen.
When creating an artifact with a very long group name, the issue is caught in the database as a constrain violation, and the resulting HTTP code is 500. We should validate inputs at a higher level, before the request is being processed. In the control plane, we use
javax.validation
annotations on the DTOs i.e. https://github.com/bf2fc6cc711aee1a0c2a/srs-fleet-manager/blob/main/core/src/main/java/org/bf2/srs/fleetmanager/rest/service/model/RegistryCreateDto.java#L36 , andquarkus-hibernate-validator
extension. In Registry, we could do the same if there are suitable DTOs, or validate on REST API beans, which would require updating the codegen.