Bug 536883

Summary: Create content provider fails on first Save but succeeds on second Save
Product: [Other] RHQ Project Reporter: John Sefler <jsefler>
Component: ContentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: unspecifiedCC: jason.dobies
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://core-01.usersys.redhat.com:7080/rhq/content/createContentProvider.xhtml
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-04 20:14:27 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:
Bug Depends On:    
Bug Blocks: 538145    

Description John Sefler 2009-11-11 17:28:26 UTC
Description of problem:
Create content provider fails on first Save but succeeds on second Save

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


How reproducible:


Steps to Reproduce:
1. Attempt to create a content provider of type RHN Hosted.  Specify a Name (testing) and any value for the Certificate field.  Let the other values default.

2. click Save  and get the following error:
Error: Failed to start adapter for [ContentSource: id=[0], name=[testing]]. Cause: org.rhq.enterprise.server.plugin.pc.content.InitializationException:org.rhq.enterprise.server.plugin.pc.content.InitializationException: Invalid 'Certificate' property -> org.rhq.enterprise.server.plugin.pc.content.InitializationException:Invalid 'Certificate' property -> org.jdom.input.JDOMParseException:Error on line 1: Content is not allowed in prolog. -> org.xml.sax.SAXParseException:Content is not allowed in prolog.

3. immediately click Save again   and get the following success message:
Saved [testing] with the ID of [10032] 
Actual results:


Expected results:
A second click of Save should continue to fail when the first Save fails.

Additional info:

This defect was revealed by our automated GUI tests.

Comment 1 Jay Dobies 2009-12-04 20:14:27 UTC

*** This bug has been marked as a duplicate of bug 538149 ***