Bug 1127873

Summary: The agent's config export command produces an invalid XML file.
Product: [JBoss] JBoss Operations Network Reporter: John Mazzitelli <mazz>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: medium    
Version: JON 3.1.2CC: hrupp, loleary, lzoubek, mazz, mfoley, miburman, mmahoney, myarboro
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The JON agent's 'config export' command generated an invalid XML file due to an introduced regression in upstream code that erroneously stripped the DOCTYPE and DTD declaration from the file. The absence of a DOCTYPE and DTD results in an invalid XML file and the file subsequently failed validation by the Java Preference system when parsed. The fix corrects the introduced regression, and resolves the issue of exporting valid configuration files.
Story Points: ---
Clone Of: 1038728 Environment:
Last Closed: 2014-12-11 14:00:04 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:
Embargoed:
Bug Depends On: 782915, 1038728    
Bug Blocks:    

Comment 1 John Mazzitelli 2014-08-07 20:03:42 UTC
getting conflict when doing:

   git cherry-pick -x d6c14baa1bc2f4b8e63045abe10bf4d62878708c

need someone who knows what changed to do the cherry pick

Comment 2 Libor Zoubek 2014-08-08 10:29:54 UTC
I'll cherry-pick this one

Comment 3 Libor Zoubek 2014-08-08 10:45:18 UTC
commit c9f95872fc04c57300716fff5f9e36523747b3c8
Author: burmanm <miburman>
Date:   Fri Jul 11 19:00:06 2014 +0300

    [BZ 1038728] [BZ 782915] Add required DOCTYPE declaration back, but do not use it on indenting phase

    (cherry picked from commit d6c14baa1bc2f4b8e63045abe10bf4d62878708c)
    Signed-off-by: Libor Zoubek <lzoubek>

    Conflicts:
        modules/enterprise/agent/src/test/java/org/rhq/enterprise/agent/AgentConfigurationTest.java

Comment 4 Simeon Pinder 2014-08-19 23:50:23 UTC
Moving to ON_QA as available to test in the following brew build:

https://brewweb.devel.redhat.com//buildinfo?buildID=379025

Comment 6 Red Hat Bugzilla 2023-09-14 02:45:23 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days