Project invitations are breaking audit log

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 1,127

      Issue Summary

      • When project invitations are sent/accepted, viewing the audit log gives a "Something went wrong" error with the following error text in the backend:
        NoReverseMatch /{workspace_slug}/workspace/settings/auditlog/
        Reverse for 'repository' with arguments '('workspaceID', '')' not found. 2 pattern(s) tried: ['(?P<username>[^/]+)/(?P<repo_slug>[^/]+)/overview/?$', '(?P<username>[^/]+)/(?P<repo_slug>[^/]+)/overview/?$']
        
      • The theory is that invitation audit logs that have an owner field are treated like repository invitations and it then tries to create a repository URL, but fails because there is no slug

      Steps to Reproduce

      1. Create workspace and project
      2. Navigate to project permissions settings page
      3. Grant a user permission that isn’t a workspace member
      4. Accept invite on the other user
      5. Navigate to Workspace settings > Audit Log
      6. Observe error message

      Expected Results

      • Audit log loads without issues regardless of what action is performed against the workspace

      Actual Results

      • Audit log is having issues loading due to the use of project invitations

      Workaround

      • Workspace admins can request a copy of the audit log from support
      • Other than this, core functionality is affected

            Assignee:
            Unassigned
            Reporter:
            Ben
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: