Actions
Defect #1644
closedShow validation error during create role with parameters
Start date:
05/13/2019
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
When I create new concept for role that has two parameter and one is type UUID and I fill invalid value is durign save concept throw error, but tha validation message isn't shown on frontend. Please show this message.
Validation error:
{ "_errors" : [ { "id" : "3590f4ef-e270-4064-a866-d98b4043de1c", "creation" : "2019-05-13T08:07:59.248Z", "statusEnum" : "METHOD_NOT_ALLOWED", "message" : "Could not read document: Can not construct instance of java.util.UUID from String value '111': not a valid textual representation, problem: UUID has to be represented by the standard 36-char representation\n at [Source: java.io.PushbackInputStream@5e015bf7; line: 1, column: 3246] (through reference chain: eu.bcvsolutions.idm.core.api.dto.IdmConceptRoleRequestDto[\"_eav\"]->java.util.ArrayList[0]->eu.bcvsolutions.idm.core.eav.api.dto.IdmFormInstanceDto[\"values\"]->java.util.ArrayList[1]->eu.bcvsolutions.idm.core.eav.api.dto.IdmFormValueDto[\"uuidValue\"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.util.UUID from String value '111': not a valid textual representation, problem: UUID has to be represented by the standard 36-char representation\n at [Source: java.io.PushbackInputStream@5e015bf7; line: 1, column: 3246] (through reference chain: eu.bcvsolutions.idm.core.api.dto.IdmConceptRoleRequestDto[\"_eav\"]->java.util.ArrayList[0]->eu.bcvsolutions.idm.core.eav.api.dto.IdmFormInstanceDto[\"values\"]->java.util.ArrayList[1]->eu.bcvsolutions.idm.core.eav.api.dto.IdmFormValueDto[\"uuidValue\"])", "parameters" : { }, "module" : "core", "statusCode" : 405, "status" : "METHOD_NOT_ALLOWED" } ] }
Affected version: probably all from role parameters. 100% 9.6.0
Files
Updated by Radek Tomiška over 5 years ago
- Status changed from New to Needs feedback
- Target version set to Rhyolite (9.7.0)
- % Done changed from 0 to 90
I've added validation for attributes with persistent type uuid.
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/6bd9edfdf79825eba49618141e5c1f9e22973285
Could you do a feedback, please?
Updated by Radek Tomiška over 5 years ago
- Target version changed from Rhyolite (9.7.0) to Quartz (9.6.4)
Updated by Ondřej Kopr over 5 years ago
- File validation.png validation.png added
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
Thank you, update behavior with validation. Now this work perfectly.
Updated by Radek Tomiška over 5 years ago
- Status changed from Resolved to Closed
Actions