Project

General

Profile

Actions

Defect #1644

closed

Show validation error during create role with parameters

Added by Ondřej Kopr over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Roles
Target version:
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

validation-error.gif (984 KB) validation-error.gif Ondřej Kopr, 05/13/2019 08:08 AM
validation.png (24.2 KB) validation.png Ondřej Kopr, 06/06/2019 12:23 PM
Actions

Also available in: Atom PDF