BatchLogin error

Description

None

Environment

The batchLogin method of Login class (org.compiere.util.Login) has an error when it calls getOrgs

// Organization
String org = Ini.getProperty(Ini.P_ORG);
KeyNamePair[] orgs = getOrgs(clientPP);

getOrgs needs of the rolePP argument instead of clientPP

KeyNamePair[] orgs = getOrgs(rolePP);

Activity

Show:

Carlos Ruiz July 11, 2018 at 6:16 PM

Carlos Ruiz February 6, 2014 at 4:25 PM

Thanks Matteo, you're right batchLogin is using the old deprecated method of login (i.e. using deprecated getRoles).

It needs to be refactored to the iDempiere way:
getClients(user, pwd)
getRoles(user, client)
getOrgs(role)

Regards,

Carlos Ruiz

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Created February 6, 2014 at 1:53 PM
Updated September 1, 2018 at 11:01 AM
Resolved July 11, 2018 at 6:16 PM