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

With follow.renames disabled, cannot read property 'change' of undefined when loading file history

    XMLWordPrintable

Details

    Description

      Summary

      Setting commit.list.follow.renames=false property causes a JS error to occur when loading the file history.

      Steps to Reproduce

      1. Set commit.list.follow.renames=false in bitbucket.properties
      2. Restart Bitbucket Server
      3. Navigate to a file in a repository and click the History dropdown

      Expected Results

      File history loads normally.

      Actual Results

      The below exception is thrown in the browser JS console:

      file-content.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a048a5…:10 Uncaught TypeError: Cannot read property 'change' of undefineditemUrl @ file-content.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a048a5…:10(anonymous function) @ commit-selector.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a04…:9c.attachNewContent @ commit-selector.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a04…:9b._addPage @ paged-scrollable.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a0…:10b.onDataLoaded @ paged-scrollable.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a0…:10(anonymous function) @ paged-scrollable.js?_statichash=56e1ecc…-T%2F597422509%2F7047e72%2F9%2F09a0…:2j @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2fireWith @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2e.(anonymous function) @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2j @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2add @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2(anonymous function) @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2j @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2fireWith @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:2x @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:4(anonymous function) @ jquery.js?_statichash=e425d40…-CDN%2F597422509%2F7047e72%2F9%2Fcb59095215e1…:4
      
      

      Workaround

      Remove the commit.list.follow.renames=false property and restart Bitbucket Server.

      Attachments

        Issue Links

          Activity

            People

              crolf Christian
              jethomas Jeff Thomas
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: