Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2014-06-07 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  unaizalakain
 Type:  Bug|   Status:  closed
Component:  HTTP handling  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11284a63d48c84f1d60b5686d55cf8a9f8d64422"]:
 {{{
 #!CommitTicketReference repository=""
 revision="11284a63d48c84f1d60b5686d55cf8a9f8d64422"
 Fixed #18314 -- Corrected request.build_absolute_uri() handling of paths
 starting with //

 ``HttpRequest.build_absolute_uri()`` now correctly handles paths starting
 with ``//``.
 ``WSGIRequest`` now doesn't remove all the leading slashes either,
 because ``http://test/server`` and http://test//server`` aren't the same
 thing
 (RFC2396).

 Thanks to SmileyChris for the initial patch.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.b6c0baff20f61a9dc8f791076e3c5f74%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2013-11-03 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  unaizalakain
 Type:  Bug|   Status:  assigned
Component:  HTTP handling  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by unaizalakain):

 * owner:  susan => unaizalakain
 * needs_better_patch:  1 => 0
 * version:  1.4 => master


Comment:

 Enhanced docs, all test passing plus correct handling of leading slashes
 by `WSGIRequest`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.223fcb2bc76de0f53431a6ab3d822a96%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2013-10-09 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  susan
 Type:  Bug|   Status:  assigned
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  0
---+
Changes (by timo):

 * easy:  1 => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.6b0648b6d198d71c117451ba89cb8594%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2013-06-29 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  susan
 Type:  Bug|   Status:  assigned
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+

Comment (by susan):

 https://github.com/django/django/pull/1314 PR is here.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.33e6925c4c12d13c36fc4c59095d99c0%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2013-06-28 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  susan
 Type:  Bug|   Status:  assigned
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+

Comment (by susan):

 The 1st test fails.But the other 3 pass. Can someone also test this patch?
 Hmm. Well, I'm going to have to fix up the patch.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.415438a8d4395a834849ecea4e4059da%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2013-06-25 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  susan
 Type:  Bug|   Status:  assigned
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+
Changes (by susan):

 * owner:  yoyoma => susan
 * status:  new => assigned


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.18ca684692f556287af9a71f877a19cf%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2013-06-09 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  new
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+
Changes (by Kamu):

 * needs_better_patch:  0 => 1


Comment:

 If I am not mistaken the patch requires updating. The test files being
 patched no longer exist at that location.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.eda37a5be75ab5ced1dcb513bd8fb455%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-08-06 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+

Comment (by anonymous):

 Any word on which patch will go to master? Both include passing tests for
 regression, etc., and both provide the exact same result.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-25 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+

Comment (by yoyoma):

 Replying to [comment:9 SmileyChris]:
 > Here's a simpler way to do it.

 I don't mean to sound too competitive, but I think my patch is as simple
 as possible, but no simpler :P It only has 2 very simple logical branches,
 and requires no hacking. I think prepending {{{'//'}}} to
 {{{self.get_full_path()}}} is a bit hacky, as it simply takes advantage
 {{{urlsplit}}} setting {{{netloc}}} to {{{''}}} when a URL starts with
 {{{//}}} (explicit over implicit comes to mind here).

 Also worth noting is:

 {{{
 if not location:
 }}}

 Not using {{{is not None}}} here could lead to an unintended result, if
 ever a bug were to cause this method to be called with an empty string
 provided as the {{{location}}} argument.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-24 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+
Changes (by SmileyChris):

 * needs_better_patch:  1 => 0


Comment:

 Here's a simpler way to do it.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-21 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+

Comment (by yoyoma):

 Replying to [comment:6 abhaga]:
 > Since the original function as well as your patch is using
 {{{self.path}}} to construct the {{{base_uri}}}, query parameters are not
 preserved anyway. So branching doesn't serve any purpose.
 > One simpler way is to strip out the additional slashes in the beginning
 of {{{self.path}}} in this function. It may be better to do that where the
 request is initialized.

 That is incorrect. {{{location}}}, if provided or not is joined with the
 {{{base_uri}}}, and when not provided is built using
 [https://docs.djangoproject.com/en/dev/ref/request-
 response/#django.http.HttpRequest.get_full_path request.get_full_path()].
 This happens in both my patch and the original.

 {{{
 >>> from urlparse import urljoin
 >>> urljoin('http://www.example.com/foo/',
 'http://www.example.com/foo/?bar=baz')
 'http://www.example.com/foo/?bar=baz'
 }}}

 Regarding the usage of {{{basestring.format()}}}, I'll provide an updated
 patch which uses string interpolation.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-19 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+

Comment (by abhaga):

 Also str.format was introduced in Python 2.6 while Django 1.4 supports
 Python 2.5 also. So that should be reverted back to old style string
 interpolation.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-19 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  0
---+
Changes (by abhaga):

 * cc: abhaga (added)
 * needs_better_patch:  0 => 1


Comment:

 Since the original function as well as your patch is using {{{self.path}}}
 to construct the {{{base_uri}}}, query parameters are not preserved
 anyway. So branching doesn't serve any purpose.
 One simpler way is to strip out the additional slashes in the beginning of
 {{{self.path}}} in this function. It may be better to do that where the
 request is initialized.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-15 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+
Changes (by yoyoma):

 * needs_tests:  1 => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-15 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  reopened
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+
Changes (by yoyoma):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Pardon my resolving of the ticket.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-15 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  closed
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:  fixed
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+
Changes (by yoyoma):

 * status:  new => closed
 * has_patch:  0 => 1
 * resolution:   => fixed


Comment:

 I've attached the fix, but if it needs improvements, let me know and I'll
 update the diff ASAP.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-15 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  yoyoma
 Type:  Bug|   Status:  new
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+
Changes (by yoyoma):

 * owner:  nobody => yoyoma


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18314: request.build_absolute_uri() functions incorrectly when the path starts with //

2012-05-14 Thread Django
#18314: request.build_absolute_uri() functions incorrectly when the path starts
with //
---+
 Reporter:  anonymous  |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  HTTP handling  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+
Changes (by claudep):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * type:  Uncategorized => Bug
 * needs_tests:   => 1
 * stage:  Unreviewed => Accepted


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.