You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/02/06 19:49:09 UTC
allura git commit: [#7824] remove redirect if proj nbhd name differs
from nbhd name
Repository: allura
Updated Branches:
refs/heads/ib/7824 cfc01faa3 -> 6a6ce358a
[#7824] remove redirect if proj nbhd name differs from nbhd name
This could potentially cause problems when neighborhood.cache.duration is set.
I believe this redirect harkens back to some early days of Allura where
project shortnames were unique across the system, not per-neighborhood. So
if a project was accessed via the wrong neighborhood, this would redirect it
to the canonical neighborhood. But now that's not even possible.
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/6a6ce358
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/6a6ce358
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/6a6ce358
Branch: refs/heads/ib/7824
Commit: 6a6ce358a193dbafb0d7d8f6f282810e6d836305
Parents: cfc01fa
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri Feb 6 18:46:28 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri Feb 6 18:46:28 2015 +0000
----------------------------------------------------------------------
Allura/allura/controllers/project.py | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/6a6ce358/Allura/allura/controllers/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index 8f2b2ef..201ee54 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -129,8 +129,6 @@ class NeighborhoodController(object):
c.project = project
if project is None or (project.deleted and not has_access(c.project, 'update')()):
raise exc.HTTPNotFound, pname
- if project.neighborhood.name != self.neighborhood_name:
- redirect(project.url())
return ProjectController(), remainder
@expose('jinja:allura:templates/neighborhood_project_list.html')