This is not a bug, it's normal and appropriate canonicalization of XML. With the exception of dropping the charset attributes, all of these items are legitimate XML transformations which should not affect the behavior of any compliant XML parser. The two example fragments you describe are completely equivalent (again, other than the missing attribute).
It is a bug. Fix it.
Can you create or link to the jira case?
Or is it easier for you to just sit here and whine all day?
Fixed in 2.4 and 2.6 codebase. Thanks.
Awesome! And sorry for being an ass. Totally not my style. I was just having a terrible day and was venting...
No problem. I'm an ass every day of my life. ;-)
We want more educated comments/cases like this one for portal, so thanks for reporting it.
I have run into a problem which is related to this.
JBPORTAL-1173 - Injecting in portal page using jboss-portlet.xml does not produce closing tag.
Has this issue been fixed in later versions of jboss portal or is therea workaround somebody knows of?