Question
Juan du Plessis · Aug 3

Wrong Error message displaying on password change window

Hi

I created a password validation routine for the management portal, which is called from the System-wide Security Parameters.
The validation process works correctly, but the error message that is displayed to the user when the entered password fails validation, consists of two separate error codes and messages

I see the following message when I click on my User at the top of the Management Portal screen (which then opens the popup window), to change my password and enter an invalid password:
ERROR #1446: Password change failed ERROR #5001: Password must contain at least one upper-case character

When I use the typical route, where an user is required to change password on next login after x amount of days, the Management Portal directs you to a separate page. I use the exact same invalid password, but only see the following message:
ERROR #1446: Password change failed


I construct my errors in the routine class with code:
quit $$$ERROR($$$GeneralError,"Password must contain at least one upper-case character")

Has anyone else experienced anything like this before or have an alternative solution?
 

Product version: Ensemble 2018.1
$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2018.1.7 (Build 721_0_21628U) Tue May 31 2022 15:54:29 EDT
0
0 118
Discussion (2)1
Log in or sign up to continue

Hey Juan,

So at a guess - Intersystems is doing the thing where they just take whatever error you return, and tack on their own error on top of it.  In some cases they return all errors, and in others they just pick off the first one of them and return that (GetOneError or something similar).  This is a bug (in my opinion) - you should open a WRC ticket and have them fix it.  They might also be able to give you a workaround.


Good luck!

Thanks Kyle. This thing has been driving me crazy! Was afraid that it's going to be something silly that I just overlooked