You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/02/16 12:44:37 UTC
[06/37] allura git commit: [#7824] remove redirect if proj nbhd name
differs from nbhd name
[#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/70df2e8f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/70df2e8f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/70df2e8f
Branch: refs/heads/ib/4542
Commit: 70df2e8fe6c121b0ba03a68c34defd3b6aaa0169
Parents: 724ba59
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri Feb 6 18:46:28 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Mon Feb 9 07:47:57 2015 +0000
----------------------------------------------------------------------
Allura/allura/controllers/project.py | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/70df2e8f/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')