Git Product home page Git Product logo

kapua's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @lorthirk, and I have absolutely zero imagination... so I'm going to steal Github's template for now.
  • ๐Ÿ‘€ Iโ€™m interested in so many things I cannot even keep track of them. Professionally I mainly develop in Java but would love to explore modern languages such as Kotlin or Python. On the peronal side I would name Flight Simulation and Aeronautics in general, and Soccer.
  • ๐ŸŒฑ Iโ€™m currently trying to start a little project to get me learning one of the languages mentioned above. I wish it involved DCS, the Flight Simulator I use the most.
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on everything involved DCS (again!) or whatever I find equally interesting
  • ๐Ÿ“ซ How to reach me: Twitter should be fine

kapua's People

Contributors

alezzandro avatar andrejn-ct avatar arthurdeschamps avatar bojanutkovic avatar coduz avatar ct-ajovanovic avatar ct-anaalbic avatar ct-goranpalibrk avatar ctron avatar dejanb avatar elbert3 avatar gbarbon avatar hekonsek avatar leonerdog avatar lorthirk avatar markodragicevicct avatar mdeluise avatar mgogic avatar miricy avatar muros-ct avatar nezau-ct avatar riccardomodanese avatar snyk-bot avatar sonja-ct avatar stefanomorson avatar stzilli avatar tristancp avatar vesnagrumic avatar xshiart avatar zanpizmoht avatar

Watchers

 avatar  avatar

kapua's Issues

Wrong Error Message When Min Password Length too Short

If user enters too large min password length, Kapua reports an error, which is OK, but the error message is wrong (it should be something similar to: "Value too small, it should be at least 12.")

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 1 (less than 12)
  4. Try to submit changes - observe the error.

Expected behavior
Error message should be changed - see above.

Screenshots
Screenshot 2020-10-28 at 08 18 31

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.

Change Password Tooltip Not OK

If user wants to change password (upper right field -> change password), the tooltip is not OK (see screenshot bellow).

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 15
  4. Create a user with a valid password
  5. Login as newly created user, go to upper right menu -> change password
  6. Hover above the password/confirm password fields -> observe the tooltip.

Expected behavior
Tooltip sohuld be fixed.

Screenshot:
Screenshot 2020-10-29 at 08 53 26

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

Minimal Value can be Higher Than 255 Characters

User can enter higher minimal password value than 255 (in this case 999999999).
So it is no possible to enter password, becasue the limit is 255.

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 999999999
  4. Change infinite child users to True
  5. Try to create a user - it is not possible, because min length pass is bigger than max length

Expected behavior
minimal password should be resticted to 254.

Screenshots
Screenshot 2020-10-28 at 08 24 42

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

Password Visible in Error Message

Password is visible in error message if it does not meet the requirements (see screenshot bellow).

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 255
  4. Change infinite child users to True
  5. Try to create a user with a valid password - observe the error

Expected behavior
Password should never be visible.

Screenshots
Screenshot 2020-10-28 at 09 52 12

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.

Enable/Disable MFA Button in MFA not Working Properly

Button in Mfa is not getting refreshed if user enables/disabled MFA, even if you change views to e.g. Devices or Tags. You have to press F5 in order to refresh it.

Testflow:

  1. Login as kapua-sys or any other user that has proper permissions
  2. Go to Users, create a user (e.g. user1)
  3. Assgin user1 admin role
  4. Login as user1, go to Users, select user1 and click on MFA tab
  5. Open menu on upper right corner -> MFA -> click Enable
  6. refresh the page by pressing F5
  7. Go to Users, select user1 -> MFA
  8. Click upper right menu, and disable the MFA
  9. Change views from Users to e.g. Devices or Tags, return to Users, select user1 -> MFA
  10. Observe the button for enabling/disabling MFA - it does not get refreshed even when views are changed.

Expected behavior
MFA button should change its "stateS" according to the MFA

Screenshots
/

Version of Kapua
1.3.0

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
[ ] Message Broker
[ ] - Others

Wrong Error if User Enters "." or "-" Symbols in min.password length Field

If user enters "." or "-" symbols in the min.password length field, Kapua reports an error that number is too large or should not be negative, etc. But "-" and "." should not be enterable anyway.

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to -10 or 10.1 or 10-1
  4. Observe the error

Expected behavior
"." and "-" symbols should not be enetarble in the field.

Screenshots
Screenshot 2020-10-28 at 10 43 30

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

Wrong Error Message When Number Contains two "-" symbols Before a Number

If you add two minus symbols before a number in min length password field, Kapua report that a number is too big, although you add e.g. --15.

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to --15
  4. Observe the error

Expected behavior
Error message should be different (e.g. negative values not allowed or something similar).

Screenshots
Screenshot 2020-10-29 at 08 20 21

Version of Kapua
[e.g. 1.0.0]

Type of deployment
[ ] Local Vagrant deployment
[ ] Docker
[ ] Openshift (in its variants)
[ ] Others

Main component affected
[ ] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API
[ ] Message Broker
[ ] - Others

Additional context
Add any other context about the problem here.

Error 500 WHen Trying to Change Password

When user clicks on upper right corner to change password, 500 server error is shown (see screenshot bellow).

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 15
  4. Create a user with a valid password, don't assign any permissions to it
  5. Login as newly created user, go to upper right menu -> change password
  6. Observe the server error

Expected behavior
there should be no 500 server error when clicking on upper right corner.

Screenshot:
Screenshot 2020-10-29 at 09 24 21

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

Min Password Value Saved Although too Short

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:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, enter e.g. "1" int he min password length
  4. Close the error, navigate to e.g. TagService or UserService inside this account settings, discard changes
  5. Return back to that field - observe the number - it stays at "1"
  6. 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.

Screenshots
Screenshot 2020-10-28 at 10 05 30

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.

Too Long Error When Copy-Pasting Characters Into min password Length Field

Yes, user is not able to directly type the characters in the min password field but they can be copy-pasted.
And in this case the error message is not OK (see screenshot bellow).

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, copy paste a string into password.min.lenght
  4. Observe the error

Expected behavior
Error message should be somehow generic, to not mention the field's content.

Screenshots
Screenshot 2020-10-29 at 10 36 42

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

Field Description for Passwords Does not change When Changed in Account Settings

If user changes value from the default one (12), this is no visible in the password description when creating new user from Accounts -> Users -> new user(see screenshot bellow), but is visible when changing account (top right corner).

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, enter e.g. "13" int he min password length
  4. Try to add a new user (Account -> User -> add new user) - do not change accounts, stay on kapua-sys account
  5. Observe the number that is not changed from 12 to 13.

Expected behavior
Value in password description when creating new user from parent account should be changed.

Screenshots
Screenshot 2020-10-28 at 10 12 36

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.

Wrong Error Message When Min Password Length >255

if you set min password length to 256, the error message is"Value must be smaller than 255", but this is wrong, becasue min password length may actually be 255, so the message should be "Value must be smaller than 256".

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 256
  4. Try to create a user with 255 password length - observe the error.

Expected behavior
Error message should be "Value must be smaller than 256", because min password lenght may actually be 255.

Screenshots
Screenshot 2020-10-29 at 07 36 47

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

Different Error Messages if Password Not Long Enough

If you are trying to create a user in first subaccount of kapua-sys (e.g. account0) you get error message as shown in Screenshot no. 1.
But if you create a subaccount of accoun0 (e.g. account0_1) and do not meet the minimum requirements for password length, the error message is totally different (screenshot No. 2)

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. account0)
  3. Select account0, go to Account settings, change password.min.lenght to e.g. 20
  4. Try to create a user with password shorter than 20 - observe the error (screenshot no. 1)
  5. Create a subaccount of account0, e.g. account0_1.
  6. in account0_1 set the min password to e.g. 25, try to create a user within account0_1 with password shorter than 25
  7. Observe the error message - it is different than the upper one.

Expected behavior
Error messages hould be the same.

Screenshot No. 1:
Screenshot 2020-10-29 at 08 02 03

Screenshot No. 2:
Screenshot 2020-10-29 at 08 00 52

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

Syntax Error in min Password Length Description

Current description fo min passowrd length field is: "The minimum length of the password. Changing this won't affect existing passwords. This value cannot be less than the system default value. If empty, use the system default value."

but should be:

"The minimum length of the password. Changing this won't affect existing passwords. This value cannot be less than the system default value. If empty, system default value will be used."

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, observe the min password length field description

Expected behavior
Field description should be changed - see above.

Screenshots
Screenshot 2020-10-28 at 08 21 02

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.

User Created Although Password not Long Enough

If user wants to create a user that does not meet the minimum password requirements, the user is created anyway, after the error disappears and the new user dialogue box is closed.

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 255
  4. Change infinite child users to True
  5. Try to create a user - observe the error
  6. Close the dialogue box, observe the User list - user is created anywaty

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
/

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.