Task #1930
closed
Password policy page doesn't work properly
Added by Ondrej Husník over 4 years ago.
Updated over 4 years ago.
Description
Affected version 10.0.0-SNAPSHOT
Password policy page displays error message and doesn't open at all.
Full error message:
ENTITY_NOT_FOUND (404:86066920-2a4c-4fae-b0da-3500466730da)
Entity type [eu.bcvsolutions.idm.core.model.entity.IdmPasswordPolicy] with id [undefined] not found. (entityType:eu.bcvsolutions.idm.core.model.entity.IdmPasswordPolicy, entityId:undefined)
Files
- Status changed from New to In Progress
- Target version set to 10.0.0
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Ondrej Husník
- % Done changed from 0 to 90
Problem was in routing. More specifically in computing of Route ID. Password policies use one route for lists of all policies with path "password-policies/" and second for detail with path "password-policies". Because I trimming a slashes the second route was skiped.
Generally is problem in definition of second route, when should be path "password-policies/:entityId" instead, but for back compatibility I modified computing of Route ID (added slash).
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/3efa400e14902e41c79b3d42ca1ab47cdb131197
Thanks for finding this bug.
- Status changed from Needs feedback to Resolved
- % Done changed from 90 to 100
- Assignee changed from Ondrej Husník to Vít Švanda
- Status changed from Resolved to Closed
Also available in: Atom
PDF