details: https://code.openbravo.com/erp/devel/pi/rev/0f858c02b0dd changeset: 32236:0f858c02b0dd user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Tue May 30 17:18:23 2017 +0200 summary: related to issue 35994: create http session in stateful WS requests
It was missing to create the http session for the stateful WS requests being in an environment with unlimited WS access diffstat: src/org/openbravo/authentication/AuthenticationManager.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diffs (14 lines): diff -r a85be898ff3b -r 0f858c02b0dd src/org/openbravo/authentication/AuthenticationManager.java --- a/src/org/openbravo/authentication/AuthenticationManager.java Tue May 30 16:00:32 2017 +0200 +++ b/src/org/openbravo/authentication/AuthenticationManager.java Tue May 30 17:18:23 2017 +0200 @@ -253,6 +253,10 @@ // If the current license has unlimited number of WS calls no limit will be checked, so there is // no need to create a new register in the AD_Session table if (activationKey.hasUnlimitedWsAccess()) { + if (!AuthenticationManager.isStatelessRequest(request)) { + // force creation of the http session in stateful WS requests + request.getSession(true); + } return userId; } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits