Bug 1026048 - Misleading error message on JAASUserGroupCallback load fail.
Summary: Misleading error message on JAASUserGroupCallback load fail.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER5
: 6.0.0
Assignee: Maciej Swiderski
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-03 06:43 UTC by Marek Baluch
Modified: 2014-08-06 20:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:12:36 UTC
Type: Bug


Attachments (Terms of Use)

Description Marek Baluch 2013-11-03 06:43:26 UTC
Description of problem:

The error message says "Error when loading properties for DB user group callback" instead of JAAS user group callback. This is probably a copy/paste error.

See snipp:
{code}
	public JAASUserGroupCallbackImpl() {
		// use default JBoss AS role principle name
		this("Roles");
		
		String propertiesLocation = System.getProperty("jbpm.usergroup.callback.properties");
        
        if (propertiesLocation == null) {
            propertiesLocation = DEFAULT_PROPERTIES_NAME;
        }
 
        InputStream in = this.getClass().getResourceAsStream(propertiesLocation);
        if (in != null) {
            Properties config = new Properties();
            try {
                config.load(in);
                
                this.rolePrincipleName = config.getProperty("jaas.role.principle.name");
            } catch (IOException e) {
                logger.error("Error when loading properties for DB user group callback", e);
                config = null;
            }
        }
	}
{code}

Comment 2 Marek Baluch 2013-11-23 14:29:44 UTC
Verified on ER5.


Note You need to log in before you can comment on or make changes to this bug.