Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-10322

Loading unified diff of file with whitespace only changes and ignore whitespace fails

    XMLWordPrintable

Details

    Description

      When attempting to view the diff of a file that contains only whitespace changes with "Ignore whitespace" turned on the diff fails to load and the spinner remains. The following JavaScript error will appear on the console:

      Uncaught TypeError: Cannot read property 'hunks' of undefined

      Workaround

      • Go to the diff for an unaffected file
      • Turn off "Ignore whitespace" in the menu at the top of the diff

      Attachments

        Activity

          People

            mszczepanski Marcin
            mszczepanski Marcin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: