The newline (line feed code) behavior of ServletPrintWriter has been changed since JBoss EAP 7.3.5

Solution Unverified - Updated -

Issue

  • The newline (line feed code) behavior of ServletPrintWriter has been changed since JBoss EAP 7.3.5. It was LF (\n) before JBoss EAP 7.3.4, but it's CRLF (\r\n) since EAP 7.3.5+.
  • ServletPrintWriter's line feed code is different between JBoss EAP 6 and JBoss EAP 7.
    • In JBoss EAP 6.x, it's CRLF (\r\n)
    • In JBoss EAP 7.x (before 7.3.5), it's LF (\n)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content