Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #50321 Back to Issue ]
Summary 0050321: LoginDataProvider.getData overwrites data defined for the same property instead of merging it
Revision 2022-10-21 10:13 by caristu
Steps To Reproduce - Implement LoginDataProvider.getData and return a Map with "terminal" as key and any JSONObject as value.
- Clean the cache in ReactPOS and login -> You get following error: Cannot read properties of undefined (reading 'minutestorefreshdatatotal') -> This is caused because the LoginDataProvider hook is overwriting the terminal data that is previously generated by the MobileCoreLoginUtilsServlet.
Revision 2022-10-21 10:13 by caristu
Description The MobileCoreLoginUtilsServlet generates a JSON object as the the response data with information that is loaded in the POS during the login process.

The LoginDataProvider hooks are intended to add custom data (with external modules) into that JSON object. But currently they do not support appending information into the inner JSON properties of the response data: they now can just overwrite it. This prevents including some information properly in the response data.
Revision 2022-10-21 08:26 by caristu
Steps To Reproduce - Implement LoginDataProvider.getData and return a Map with "terminal" as key and any JSONObject as value.
- Clean the cache in ReactPOS and login -> You get following error: Cannot read properties of undefined (reading 'minutestorefreshdatatotal')
Revision 2022-10-21 08:26 by caristu
Description LoginDataProvider.getData overwrites data defined for the same property instead of merging it.

The problem is in MobileCoreLoginUtilsServlet.addExtraLoginData function.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker