Bug 805364

Summary: Trailing slash causes csprocessor.cfg / .ini server urls to not match
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: CSProcessorAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: jwulf, lcarlon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.22.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-07 01:29:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joshua Wulf 2012-03-21 02:49:24 UTC
If you put a trailing slash on a server url in the csprocessor.ini file, and the server url does not have a trailing slash in the .cfg file, they won't match.

Obviously they are not the same string, but putting either url into a browser would get a similar result:

https://skynet.usersys.redhat.com:8443/TopicIndex/
https://skynet.usersys.redhat.com:8443/TopicIndex

both take you to the same place in a browser. So that user expectation can carry over into the configuration.

Maybe remove any trailing slash when matching urls?

Comment 1 Lee Newson 2012-03-24 03:55:30 UTC
Fixed in 0.22.4

Cause:
The Java URL.equals() function doesn't return that those two URL's are equal. (There is a reason but not worth mentioning)

Consequence:
The client would return an error message that the csprocessor.cfg couldn't be matched to a server configuration.

Fix:
Run all the URL's from the Command Line, csprocessor.cfg and csprocessor.ini through a validation function to add the trailing slashes and make sure that the protocal is set.

Comment 2 Lee Newson 2013-06-07 01:29:26 UTC
Closing and setting as current release as no QA was performed by the original reporter. If there is still an issue with this bug still than please re-open it.