Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4946

ManagedDeployableContainer.ConsoleConsumer should not change the console output

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 7.1.2.Final (EAP)
    • 7.1.3.Final (EAP)
    • None
    • None

    Description

      Executing the following code in a standalone J2SE app:

      val out = new PrintStream(new BufferedOutputStream(new FileOutputStream(FileDescriptor.out), 128), true, "UTF-8")
      out.print("hello\rgoodbye")

      Will print:

      goodbye

      However, when running an Arquillian test with AS, if the code within AS writes that, it will print:

      hello
      goodbye

      The culprit is org.jboss.as.arquillian.container.managed.ManagedDeployableContainer.ConsoleConsumer whose consuming the process output and it's using readLine, which is translating \r to \n, when it really shouldn't be any transformation of the output.

      Attachments

        Issue Links

          Activity

            People

              gzamarre Galder ZamarreƱo
              gzamarre Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: