Getting an error while trying to login

After session gets expired or another deployment the url gets modified to this “with query”:
http://localhost:8080/#login?redirectTo=employees%2Fview

User can’t login with query, since it contains replaced hex charcodes like “%2F” instead of “/”

image

Here is full stack trace …

image

While debugging found a row inside ControllerUtils, where ihmo should use
location.getRawFragment() instead of location.getFragment()

image

Hope you’ll take in consideretion my suggestion for the next patch release…

Regards

Hi,

It seems that / is used to separate parent prefix with route of the View screen, but the parentPrefix attribute isn’t defined for the @Route annotation. The correct example can be found in the UserEdit controller, e.g.:

@Route(value = "users/edit", parentPrefix = "users")

so in your case, it should be as follows:

@Route(value = "employees/view", parentPrefix = "employees")

If the problem persists, please attach a small demo project that reproduces the problem.

Regards,
Gleb

image

Hi Gleb,

Yes exactly identical, parentPrefix is defined as you recommend…

But the problem still persists…

P.S.
I have posted an issue #1018 on GitHub & sent a pull request with a fix which passes all tests successfully…

Hi,

Thank you for PR, but before we can approve your PR, we need to reproduce the problem. Could you please attach a small demo project that reproduces the issue?

Regards,
Gleb