Bug 769909

Summary: Whitespaces in jbpm.console.properties causes problems for jBPM console
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jeff DeLong <jdelong>
Component: jBPM ConsoleAssignee: Kris Verlaenen <kverlaen>
Status: VERIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: lpetrovi
Target Milestone: ---   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff DeLong 2011-12-22 17:16:32 UTC
Description of problem:

I copied a jbpm.comnsole.properties file from an email and it had whitespaces at the end of each line. This caused the following error in the log when trying to get processes in the jBPM Console:

13:04:26,820 ERROR [GuvnorConnectionUtils] Error checking guvnor existence: no protocol: http ://localhost:8080 /jboss-brms /rest/packages/1

13:04:26,821 WARN  [CommandDelegate] Could not connect to Guvnor.


Notices the spaces in between the URL components. So I went back in the jbpm.console.properties file, removed the white spaces that showed up from the email.

Version-Release number of selected component (if applicable):

Dev6

How reproducible:

Very

Steps to Reproduce:
1. Add a whitespace to the end of a property in the jbpm.console.properties file, e.g. guvnor.protocol=http 
guvnor.host=localhost:8080  
2. Start server.
3. Login in to jBPM Console
  
Actual results:

ERROR [GuvnorConnectionUtils] Error checking guvnor existence: no protocol: http: //localhost:8080 /jboss-brms/rest/packages/1

Expected results:

Successful retrieval of packages from Guvnor.

Additional info:

Comment 1 Tihomir Surdilovic 2011-12-22 17:20:24 UTC
Committed to jbpm 5.2.x branch (https://github.com/droolsjbpm/jbpm/commit/c87452f9ec1d846c516e879738383a0f0e18adbc). Please re-test on next BRMS 5.3 build.

Thanks.

Comment 2 Jiri Locker 2012-01-27 15:22:54 UTC
Verified in ER3.