Wrong message displayed on Development Panel when a commit message is updated in a SVN repository

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 4.5.1, 4.5.3, 4.7.0
    • Component/s: None
    • Severity 3 - Minor
    • 2

      Summary

      When an SVN commit message that references a JIRA issue is changed to reference a different JIRA issue, and the change is indexed by FishEye/Crucible, the original JIRA issue displays the erroneous message "You don't have access to view all related commits. Please contact your administrator":

      In addition, the Development Panel summary (the "x commits" message under the Dev Panel) for the issue which is now referenced by the commit message isn't updated.

      Environment

      • JIRA 6.4.5
      • FishEye 3.10.2
        • Linked to JIRA through Application Link (method: OAuth w/ 2-LO). OAuth tokens created in both sides.
        • Having a SVN repository indexed.
      • svn, version 1.7.20

      Steps to Reproduce

      1. In JIRA, create two issues - let's name them TST-1 and TST-2.
      2. Perform a commit on the SVN repo, referencing TST-1. Wait for it to be indexed by FishEye, and confirm the Dev Panel summary is updated, showing 1 commit, and that opening its details lists the commit.
      3. On the SVN repository, change the commit message to reference TST-2:
        svn propset -r N --revprop svn:log "TST-2 testing change on N" URL
        
        • N must be replaced by the revision number for which you are editing the commit message.
        • URL must be replaced by the repo's location. It's not necessary to use this parameter if you are already in the repository in the command line.
      4. Go to FishEye Administration > Repositories, open the repo's config, then go to Maintenance. On this screen, under Subversion Non-Versioned Properties (revprops), fill the fields from and to with an interval of revisions comprehending the one you changed, then click in Start.
      5. Confirm the commit message is updated by looking at this repo's activity in FishEye.
      6. Acccess the TST-1 issue in JIRA, then click in the *x commit", which won't be updated. You won't see the revision previously linked to this issue, and the message "You don't have access to view all related commits. Please contact your administrator" will be displayed, similarly to:

      Expected Results

      • After the non-versioned properties of the revision are re-indexed, the Development Panel should be updated to reflect the commits that are actually linked to each issue.

      Actual Results

      • The Development Panel isn't properly updated, displaying wrong results:
        • For TST-1, it will keep showing the "x commits" link, but its content will be the erroneous message "You don't have access to view all related commits. Please contact your administrator".
        • For TST-2, the Development Panel summary isn't updated, so there will be no "x commits" link, if this issue didn't have any commit previously linked to it.

      Notes

      • This seems to be strictly related to the Development Panel, since the Source tab properly displays the new information right away.

      What DOES NOT help

      • Refreshing FishEye/Crucible caches at JIRA Administration > Add-ons > FishEye Configuration (I believe this is because these caches are for the JIRA FishEye Plugin, while the Development Panel is managed by the Development Integration Plugin).
      • Restarting JIRA.
      • Re-creating the application link.

      Workaround

      I couldn't find a proper workaround around for this, but I observed that:

      • After 30 minutes, when JIRA runs the job to collect new information from FishEye, the data in the Development Panel is properly adjusted (both the summary and the details).
      • Sometimes, committing a new change seems to clean the Development Panel details - i.e. the number of commits displayed in the summary is still wrong, but the wrong message isn't displayed anymore when opening the Dev Panel. This seems to be intermittent.

        1. devpanel1.png
          123 kB
          Gustavo Refosco

            Assignee:
            Unassigned
            Reporter:
            Gustavo Refosco (Inactive)
            Votes:
            10 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: