Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39521

Full Log does not render newlines - or use correct content type (weird HTML like artifacts)

    XMLWordPrintable

    Details

    • Sprint:
      iapetus
    • Similar Issues:

      Description

      Scope

      • Force text/plain content type on full log endpoint

      Original Request
      When displaying the full log for a step, e.g. at https://jenkins.my-domain.com/blue/rest/organizations/jenkins/pipelines/Org/project/branches/master/runs/90/log/?start=0, the log is rendered as HTML with colors, anchors, etc., but line breaks are not renders as <br />.

      That's fine to do, but if so, the body should have a `style="white-space: pre-wrap"` or you end up with an enormous wall of unbroken text.

        Attachments

          Activity

          Hide
          kamikaze Oleg Korsak added a comment -

          James Dumay is this the right place to just report that "show full logs" button opens the tab with logs that are being rendered as HTML in Firefox ?

          Show
          kamikaze Oleg Korsak added a comment - James Dumay is this the right place to just report that "show full logs" button opens the tab with logs that are being rendered as HTML in Firefox ?
          Hide
          jamesdumay James Dumay added a comment -

          Oleg Korsak yes, thats what this ticket is all about.

          Show
          jamesdumay James Dumay added a comment - Oleg Korsak yes, thats what this ticket is all about.
          Hide
          michaelneale Michael Neale added a comment -

          Oleg Korsak that one has been fixed in master and will be out in next release.

          Show
          michaelneale Michael Neale added a comment - Oleg Korsak that one has been fixed in master and will be out in next release.
          Hide
          kamikaze Oleg Korsak added a comment - - edited

          Michael Neale I have latest BlueOcean 1.0.0-b23 . Logs are still being rendered as a one line text that takes the whole screen. At least in Firefox

          Show
          kamikaze Oleg Korsak added a comment - - edited Michael Neale I have latest BlueOcean 1.0.0-b23 . Logs are still being rendered as a one line text that takes the whole screen. At least in Firefox
          Hide
          jamesdumay James Dumay added a comment - - edited

          Oleg Korsak This was not included in the 23 release. Expect to see it in next weeks release, beta 24.

          Show
          jamesdumay James Dumay added a comment - - edited Oleg Korsak This was not included in the 23 release. Expect to see it in next weeks release, beta 24.

            People

            • Assignee:
              imeredith Ivan Meredith
              Reporter:
              strml Samuel Reed
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: