author Asier Lostalé <asier.lostale@openbravo.com>
Fri, 17 May 2019 11:14:19 +0200
changeset 35804 1596542c21af
parent 34274 8ae21a187b22
permissions -rw-r--r--
fixed bug 40897: broken system if tying to create a ws row with unlimited WS

System became unreacheable after trtying to create/update a record through WS
as first action after Tomcat restart having unlimited WS access license.

This occurred because TreeTablesEventHandler initialization assumed to be in
admin mode. As unlimited access license does not do any DB modification on login,
which is what occurs in standard login and with limited acess licenses, first
flush with dirty entities causes TreeTablesEventHandler init to fail in a
unrecoverable manner.

Now TreeTablesEventHandler is initialized in admin mode to prevent this case.
<?xml version="1.0" encoding="UTF-8"?>