JDK-8022269 : DRS: Display of message includes unnecessary whitespace that mimics xml-formatted line breaks
  • Type: Bug
  • Component: deploy
  • Affected Version: 7u40
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2013-08-05
  • Updated: 2015-01-09
  • Resolved: 2015-01-09
Related Reports
Relates :  
Description
Formatting an XML document with linebreaks and whitespace cases the message to display exactly as formatted in the file.

Example (indenting):
			<message>Blocked by corporate. Contact Mr. Newline Whitespace
			if you need to run this app.</message>
Comments
The behavior of message formatting is improved with fix to JDK-8022268. no further changes are planed. white space in message element will be displayed as is. closing as will not fix.
09-01-2015

I can easily reproduce, but question what the submitter expects the proper behavior to be. Currently, if DRS has a block message specification such as: <message> Application is Blocked. All non approved applications will be blocked till further notice. (for more info contact jonsmith.company.com) </message> it will be displayed formated as shown (with the line breaks and spaces. this is not desirable in case where formating is just to make the XML look presentable: <rule> <id/> <action permission="block"> <message>Blocked by Andy </message> </action> </rule> Code only gets string from XMLParser, and has no knowledge of the intent behind the formating. The only choices I see are to: 1.) leave it as is, formatted exactly as written in xml file. 2.) assume all newlines followed by whitespace are for fitting in xml file, and convert to one space. Is there anything else you can suggest ?
29-10-2014

request to enhance custom message support, not show stopper for 7u40. we should investigate and fix in 8/7u.
06-08-2013