Project

General

Profile

Actions

Defect #3057

closed

Replace or remove contract guarantee in bulk when selecting all records (multiple issues)

Added by Alena Peterová almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Tomáš Doischer
Category:
Bulk operations
Target version:
Start date:
02/14/2022
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Tested on 12.1.0. It worked well on 11.2.1.

Several problems with the new feature of selecting original guarantee for bulk actions Replace or Remove contract guarantee:
A) Go to the detail of some manager and to the tab Subordinates . Select all records and choose the bulk action Replace contract guarantee. Nothing happens.

B) Use the field " Own group search by usernames, ..." - put some logins there, select all records and choose the bulk action Replace contract guarantee. Nothing happens.

C) Too many options in the select box: if you select only some records, it displays correct original guarantee (1 in our case).

But if you select the same users by selecting all records filtered to some filter (user type), wrong guarantees are displayed (4 in our case - the correct one and 3 more, who don't have any guarantee. The logged user has read and autocomplete for these 3.)

Error in catalina log: (A)

2022-02-14 17:17:39.685  WARN 2593042 --- [ajp-nio-127.0.0.1-8009-exec-3] eu.bcvsolutions.idm.core.exception.ExceptionControllerAdvice.log : [core:BAD_FILTER:3dd61213-c132-4a4c-a86b-6d187a9d251e] The filter is wrong! ({})
eu.bcvsolutions.idm.core.api.exception.ResultCodeException: The filter is wrong!
    at eu.bcvsolutions.idm.core.api.utils.FilterConverter.toFilter(FilterConverter.java:56)
...
Caused by: java.lang.IllegalArgumentException: Cannot deserialize value of type `java.util.UUID` from String "x0551799": UUID has to be represented by standard 36-char representation
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: eu.bcvsolutions.idm.core.api.dto.filter.IdmIdentityFilter["subordinatesFor"])
    at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4314)
    at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4245)
    at eu.bcvsolutions.idm.core.api.utils.FilterConverter.toFilter(FilterConverter.java:54)
    ... 145 common frames omitted
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.UUID` from String "x0551799": UUID has to be represented by standard 36-char representation
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: eu.bcvsolutions.idm.core.api.dto.filter.IdmIdentityFilter["subordinatesFor"])
    at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)

Error in catalina log: (B)

Caused by: java.lang.IllegalArgumentException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('t107342345')
 at [Source: U
    at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4314)
    at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4245)
    at eu.bcvsolutions.idm.core.api.utils.FilterConverter.toFilter(FilterConverter.java:54)
    ... 145 common frames omitted
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('t107342345')
 at [Source: U
    at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63)
    at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1588)
    at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1213)
    at com.fasterxml.jackson.databind.deser.std.StdDeserializer._deserializeFromString(StdDeserializer.java:311)
    at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.handleNonArray(StringCollectionDeserializer.java:284)
    at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:192)
    at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:182)
    at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:25)
    at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:324)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)
    at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4309)
    ... 147 common frames omitted
2022-02-14 18:20:15.366  WARN 6348723 --- [AsyncAppender-Worker-DB_ASYNC] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions : SQL Error: 0, SQLState: 22001
2022-02-14 18:20:15.366 ERROR 6348723 --- [AsyncAppender-Worker-DB_ASYNC] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions : ERROR: value too long for type character varying(254)


Files

bulk_change.png (110 KB) bulk_change.png Alena Peterová, 02/14/2022 04:19 PM
bulk_change_identifiers.png (51.2 KB) bulk_change_identifiers.png Alena Peterová, 02/14/2022 05:26 PM
bulk_change_all_users.png (75.7 KB) bulk_change_all_users.png Alena Peterová, 02/14/2022 05:31 PM
bulk_change_selected_users.png (76.4 KB) bulk_change_selected_users.png Alena Peterová, 02/14/2022 05:31 PM
Actions

Also available in: Atom PDF