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 2013/05/22 19:41:21 UTC
[1/2] git commit: [#6239] Remove RelativeLinkRewriter short-circuit
Updated Branches:
refs/heads/master b37d0e855 -> da3c843e7
[#6239] Remove RelativeLinkRewriter short-circuit
Not sure why it was there to begin with. Asked Rick and he
didn't remember. In any case, removing it has no effect that
I could see. Tests all pass, and artifact links in emails and
web pages are still generated correctly (absolute links in
emails, and relative links in web pages).
Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/da3c843e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/da3c843e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/da3c843e
Branch: refs/heads/master
Commit: da3c843e7ceb3d2bf3b5be15eedcb473b833060a
Parents: 616d519
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Wed May 22 15:12:44 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed May 22 17:40:49 2013 +0000
----------------------------------------------------------------------
Allura/allura/lib/markdown_extensions.py | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/da3c843e/Allura/allura/lib/markdown_extensions.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/markdown_extensions.py b/Allura/allura/lib/markdown_extensions.py
index a1158e5..be2805a 100644
--- a/Allura/allura/lib/markdown_extensions.py
+++ b/Allura/allura/lib/markdown_extensions.py
@@ -238,11 +238,6 @@ class RelativeLinkRewriter(markdown.postprocessors.Postprocessor):
self._make_absolute = make_absolute
def run(self, text):
- try:
- if not request.path_info.endswith('/'): return text
- except:
- # Must be being called outside the request context
- pass
soup = BeautifulSoup(text)
if self._make_absolute:
rewrite = self._rewrite_abs
[2/2] git commit: [#6239] Fix artifact links in emails
Posted by br...@apache.org.
[#6239] Fix artifact links in emails
RelativeLinkRewriter short-circuits unless PATH_INFO ends with /
Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/616d519e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/616d519e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/616d519e
Branch: refs/heads/master
Commit: 616d519e6301c1ff23e6112cbfdac4b6bea32d1b
Parents: b37d0e8
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue May 21 21:32:48 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed May 22 17:40:49 2013 +0000
----------------------------------------------------------------------
Allura/allura/command/taskd.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/616d519e/Allura/allura/command/taskd.py
----------------------------------------------------------------------
diff --git a/Allura/allura/command/taskd.py b/Allura/allura/command/taskd.py
index 505935a..f75f01b 100644
--- a/Allura/allura/command/taskd.py
+++ b/Allura/allura/command/taskd.py
@@ -122,7 +122,7 @@ class TaskdCommand(base.Command):
only=only)
if self.task:
# Build the (fake) request
- r = Request.blank('/--%s--/%s' % (self.task.task_name, self.task._id),
+ r = Request.blank('/--%s--/%s/' % (self.task.task_name, self.task._id),
{'task': self.task,
'wsgi.errors': wsgi_error_log, # ErrorMiddleware records error details here
})