Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#7708 Allow latin chars in username and password #7723

Merged
merged 7 commits into from
Jan 13, 2022

Conversation

offtherailz
Copy link
Member

@offtherailz offtherailz commented Jan 12, 2022

Description

This PR allows to use UTF-8 chars in username and password, by:

  • Updating axios to fix issues that was causing Cannot login if password contains òàè characters #1882 and we fixed by limiting the allowed chars
  • encoding properly the username (the fix in axios do not include username, unfortunately )
  • Fixing unit tests
  • Fixed also minor issue in localization of error message.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#7708

What is the new behavior?

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

We may need an extensive test bacause of the update of axios. Anyway the breaking changes are not so important to us (Typescript). I had to fix tests because of some fixes changes internal config checks, but I didn't noticed anything else).

Copy link
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@offtherailz i have added some comments

package.json Outdated Show resolved Hide resolved
@offtherailz offtherailz requested a review from MV88 January 12, 2022 17:54
@MV88 MV88 merged commit 22e22d5 into geosolutions-it:master Jan 13, 2022
@MV88
Copy link
Contributor

MV88 commented Jan 13, 2022

@ElenaGallo please test in DEV

@tdipisa
Copy link
Member

tdipisa commented Jan 13, 2022

@ElenaGallo please test this in DEV as soon as you can and let me know when done.

@ElenaGallo
Copy link
Contributor

@offtherailz It is not possible to login with username or password without Latin characters.

How to Reproduce

  • Click on login
  • Enter egallo҂ as Username and egallo as Password

Current Result
It is not possible to login

@tdipisa
Copy link
Member

tdipisa commented Jan 13, 2022

@offtherailz @ElenaGallo moving back to ready. We have to review what done @offtherailz.

offtherailz added a commit that referenced this pull request Jan 13, 2022
MV88 pushed a commit that referenced this pull request Jan 13, 2022
offtherailz pushed a commit to offtherailz/MapStore2 that referenced this pull request Jan 14, 2022
@tdipisa tdipisa added tmp and removed tmp labels Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants