#5428 some ProjectConflict errors when checking user icon_url

v1.0.0
closed
sf-1 (616)
General
Cory Johns
2015-08-20
2012-12-06
No

This is fallout from [#5354] Example URLs: https://sourceforge.net/p/polyclipping/support-requests/3/ https://sourceforge.net//p/album-art/support-requests/8/

File '/var/local/allura/Allura/allura/templates/jinja_master/lib.html', line 15 in template
  {% if user.icon_url() %}
File '<string>', line 2 in icon_url
File '/var/local/allura/Allura/allura/lib/decorators.py', line 196 in memoize
  result = func(*args)
File '/var/local/allura/Allura/allura/model/auth.py', line 484 in icon_url
  private_project = self.private_project()
File '/var/local/allura/Allura/allura/model/auth.py', line 593 in private_project
  p = n.register_project(project_shortname, user=self, user_project=True)
File '/var/local/allura/Allura/allura/model/neighborhood.py', line 102 in register_project
  self, shortname, project_name, user or getattr(c, 'user', None), user_project, private_project, apps)
File '/var/local/forge-classic/sfx/sfx_main.py', line 275 in register_project
  user_project, private_project)
File '/var/local/allura/Allura/allura/lib/plugin.py', line 430 in validate_project
  raise forge_exc.ProjectConflict()

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-12-06

    Problem is if the user-project is deleted. private_project checks the deleted field but validate_project does not.

     
  • Dave Brondsema

    Dave Brondsema - 2012-12-06
     
  • Dave Brondsema

    Dave Brondsema - 2012-12-06
    • status: open --> code-review
    • qa: Cory Johns
     
  • Cory Johns - 2012-12-06
    • status: code-review --> closed
     

Log in to post a comment.