Min Password Value Saved Although too Short
Opened this issue · 3 comments
If user enters min password length < 12, Kapua reports an error, and the value is not saved.
But if user changes view to e.g. UserService and comes back, you can see that the value is saved.
Nevertheless, when you navigate to different view (e.g. Tags or Endpoints) and then return, the previous vald value is set in the box.
This should be fixed.
Testflow:
- Login as kapua-sys
- Go to Accounts, create an account (e.g. acco0)
- Select acc0, go to Account settings, enter e.g. "1" int he min password length
- Close the error, navigate to e.g. TagService or UserService inside this account settings, discard changes
- Return back to that field - observe the number - it stays at "1"
- Change views to e.g. Enpoints and then return - observe the filed once again - it is set to previous valid value
Expected behavior
Value should not (even implicitly) be saved if it does not meet the minimum requirements.
Version of Kapua
https://github.com/lorthirk/kapua/tree/feature-configurablePasswordLength
Type of deployment
[ ] Local Vagrant deployment
[x] Docker
[ ] Openshift (in its variants)
[ ] Others
Main component affected
[x] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API -> did not try rest api!!! -> please check!
[ ] Message Broker
[ ] - Others
Additional context
Add any other context about the problem here.
Hey @lorthirk,
I have checked this and the problem persists in the latest commit.
Ok, I managed to reproduce this, and it happens with other services as well. Here's a test case for UserService
:
- create an account (e.g. acc0)
- set
infiniteChildUsers
to true for account acc0 - create a user in acc0
- try to set
infiniteChildUser
tofalse
- observe error
- try to navigate to another service, discarding changes
- navigate back to
UserService
:infiniteChildUsers
is stillfalse
, while it should betrue
So I would treat this as a separate issue, to be fixed in the Account Configuration component itself