Follow

AuthAnvil Module AJAX errors in Password Server UI

Introduction

In AuthAnvil Password Server v2.5.3 - v2.8 later an AJAX UI defect exists where the cardview control may not keep selection state if you have a lot of data across several pages.

To help facilitate faster rendering for customers with larger sets of data, we only prefetch a certain amount of data that we "look ahead" to and bring down to the browser. The defect is that in certain conditions, when you update the state of some objects in the cardview and write it back to the database, pages that have no yet been prefetched are not included in the saved state, ultimately un-selecting data.

An example is when trying to manage role assignment for large amounts of users. If you make a change to add or remove a user from page one and never prefetch any more data, users selected in further pages are un-selected when you save the information.

Note: If you are not using VSA R9.3 patch 17 please upgrade VSA before you attempt this fix.


Applying the Hotfix

In the C:\Kaseya\WebPages\AAPS_Addin\js on line 67 of the common-vaults.js file you will see this function:

function querySt(Key) {

    var url = window.location.href;

    KeysValues = url.split(/[\?&#]+/);

    for (i = 0; i < KeysValues.length; i++) {

        KeyValue = KeysValues[i].split("=");

        if (KeyValue[0] == Key) {

            return KeyValue[1];

        }

    }

}

 

Fix
Replace this line: KeysValues = url.split(/[\?&]+/);

With this line: KeysValues = url.split(/[\?&#]+/);

 

 

Questions?

If you have any questions or need some help, we would be happy to assist. Open a case at help.scorpionsoft.com or send an email to support@scorpionsoft.com.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk