| Summary: | Misleading error message on JAASUserGroupCallback load fail. | ||
|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Marek Baluch <mbaluch> |
| Component: | jBPM Core | Assignee: | Maciej Swiderski <mswiders> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Baluch <mbaluch> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0.0 | ||
| Target Milestone: | ER5 | ||
| Target Release: | 6.0.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-08-06 20:12:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
you're right Marek, a copy paste error. jbpm master: https://github.com/droolsjbpm/jbpm/commit/8115579170f6a5df89a09686e1a9128008604d77 6.0.x: https://github.com/droolsjbpm/jbpm/commit/f9c1fe6a33d2928d7b701598d3ae1a92e8e2560a Verified on ER5. |
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}