#3216 SCM sidebar error when forked project is deleted

unreleased
invalid
nobody
None
SCM
nobody
2015-01-30
2011-11-10
No

The sidebar on https://sourceforge.net/p/allura/git/ isn't loading currently. This is the exception. I think it's when a repo is forked and then the fork is deleted.

17:15:54,745 ERROR [allura.lib.repository] Error calling exceptionless(sidebar_menu) 'NoneType' object has no attribute 'url'
Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/lib/decorators.py", line 148, in inner
    return fun(*args, **kwargs)
  File "/var/local/allura/Allura/allura/lib/repository.py", line 147, in sidebar_menu
    repo_path_parts = f.url().strip('/').split('/')
  File "/var/local/allura/Allura/allura/model/repository.py", line 247, in url
    return self.app_config.url()
AttributeError: 'NoneType' object has no attribute 'url'

Discussion

    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
  • The problem was indeed caused by a fork of Allura that had been deleted. Normally deleting a fork should not be a problem, but in this case, the app_config for the tool was deleted, but the git-repository document was not. No idea how that happened, but that's what we need to figure out. I'm hesitant to mask the error by checking if app_config is None in repo.url().

    In the meantime, I've corrected the problem in prod by asking siteops to remove the offending git-repository document from mongo.

    • status: in-progress --> open
    • assigned_to: Tim Van Steenburgh --> nobody
     
  • Dave Brondsema

    Dave Brondsema - 2011-12-02
    • status: open --> invalid
     

Log in to post a comment.