Affects Version/s: 14.0.0, 6.0.0, 6.5.0, 7.0.0
When performing self registration for a user in a sub-realm (Following an upgrade from 13.5.1), url sent in email link directs user to top-level realm rather than using the subrealm causing registration to fail.
Working URL for registration on fresh 7.0.0 install is of the format:
The URL sent for registration following an upgrade from 13.5.1 is of the format (missing ?realm=[REALM]):
How to reproduce the issue
- Deploy AM. Create a subrealm with Email service and User self service
- As a user, navigate to the sub-realms login page, click to create an account and then complete the user registration form
- Once the registration email is sent successfully, review the link included in the email.
There is also a Temper functional test which highlights the issue RegisterYourAccountFlowTest
None found, expect that using a realm dns alias could work.
Looks to have been introduced as a side-effect of the work for
commit 3ef7943a413 OPENAM-10047
Proposed fix is to add an upgrade step to handle this schema change: