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)

    • iapetus

      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.

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

          James Nord added a comment - - edited

          jamesdumay this is reproduceable internally - ping me if you want more details.

          James Nord added a comment - - edited jamesdumay this is reproduceable internally - ping me if you want more details.

          James Dumay added a comment -

          teilo thanks we've seen this too. We are going to look at it in the next sprint

          James Dumay added a comment - teilo thanks we've seen this too. We are going to look at it in the next sprint

          Michael Neale added a comment - - edited

          if it is shown as HTML - will it behave correctly or will console annotators mess with it? If so - best to show plain text and probably show the classic console view for those that want to use annotators for now?

          EDIT: oh that plain wrapped like strml suggested could be good to - worth a try.

          Michael Neale added a comment - - edited if it is shown as HTML - will it behave correctly or will console annotators mess with it? If so - best to show plain text and probably show the classic console view for those that want to use annotators for now? EDIT: oh that plain wrapped like strml suggested could be good to - worth a try.

          Oleg Korsak added a comment - - edited

          Got same problem, unable to read logs as a result ) looks like at least Firefox treats full log as HTML code and renders a mess

          Oleg Korsak added a comment - - edited Got same problem, unable to read logs as a result ) looks like at least Firefox treats full log as HTML code and renders a mess

          James Dumay added a comment -

          Oleg this hasn't been released yet

          James Dumay added a comment - Oleg this hasn't been released yet

          Oleg Korsak added a comment -

          jamesdumay 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 ?

          Oleg Korsak added a comment - jamesdumay 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 ?

          James Dumay added a comment -

          kamikaze yes, thats what this ticket is all about.

          James Dumay added a comment - kamikaze yes, thats what this ticket is all about.

          Michael Neale added a comment -

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

          Michael Neale added a comment - kamikaze that one has been fixed in master and will be out in next release.

          Oleg Korsak added a comment - - edited

          michaelneale 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

          Oleg Korsak added a comment - - edited michaelneale 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

          James Dumay added a comment - - edited

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

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

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

              Created:
              Updated:
              Resolved: