[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a58b620e4dc9 by Senthil Kumaran in branch '2.7': Fix SimpleHTTPServer's request handling case on trailing '/'. http://hg.python.org/cpython/rev/a58b620e4dc9 New changeset 1fcccbbe15e2 by Senthil Kumaran in branch '3.3': Fix http.server's request

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-09-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the patches, Vajrasky and Karl. Fixed in currently active (3.4,3.3 and 2.7) versions of python. -- assignee: - orsenthil resolution: - fixed stage: test needed - committed/rejected status: open - closed versions: -Python 3.2

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-07-08 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the fix and the unit test for this problem. -- nosy: +vajrasky Added file: http://bugs.python.org/file30863/patch_for_fixing_the_server_serving_the_url_with_trailing_slash.txt ___ Python tracker

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: The attached test (issue-17324-test-1) reproduces the issue for me on 3.4.0alpha. -- nosy: +senko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17324 ___

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-06 Thread karl
karl added the comment: orsenthil, would that test work? See issue-17324-test-1.patch Here the result of the test which is FAIL as planned (given the current issue). → ./python.exe Lib/test/test_httpservers.py test_header_buffering_of_send_error (__main__.BaseHTTPRequestHandlerTestCase)

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-01 Thread Larry Hastings
New submission from Larry Hastings: To reproduce: 1) Create a file called foo.txt in the local directory, put whatever you like in it. 2) Run python -m SimpleHTTPServer or python3 -m http.server. 3) Point your web browser at http://127.0.0.1:8000/foo.txt/;. 4) Note that the server has served

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-01 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17324 ___

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: I thought this was fixed (recently). Shall look again. Having the tests is the only hard part here. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17324