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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.6.0
    • 4.8.6, 4.9.1, 4.10.2, 4.11.2, 5.5.0, 5.3.4, 5.4.2, 5.0.9, 5.1.8, 5.2.6
    • None

    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: