Why do I get an error when logging in to Reference Application?

Hi all, I have noticed something on the openmrs reference application (while I was developing some custom openmrs modules): The logout/login redirect functionality. When you login (as a provider of course), and maybe click on register patient then, logout. On login redirection, exceptions are thrown when redirected to the registration page. This happens for some other reference application modules too (apart from the registration app module). The error is usually either that of missing patient Id, or app id, or both.

Personally, I did a quick hack for this issue on my reference app to make all redirects go to the home page. I would want suggestions from the community on how best to resolve this issue.


I’ve created a topic with the same issue:

Seems there’s some problem in the implementation of redirection logic (privilege check).