Merge pull request #8233 from mushtaqak/mushtaq/tnl2055-unicode-url-issue

Fix - Unicode character in tab number shouldn't return 500  -TNL-2055
This commit is contained in:
Mushtaq Ali
2015-06-04 12:47:37 +05:00
3 changed files with 2 additions and 2 deletions

View File

@@ -216,3 +216,4 @@ Randy Ostler <rando305@gmail.com>
Thomas Young <thomas@upcoder.com>
Andrew Dekker <simultech@gmail.com>
Christopher Lee <clee@edx.org>
Mushtaq Ali <mushtaque.ali@arbisoft.com>

View File

@@ -262,7 +262,6 @@ class ViewsTestCase(ModuleStoreTestCase):
response = self.client.get(request_url)
self.assertEqual(response.status_code, 404)
@unittest.skip
def test_unicode_handling_in_url(self):
url_parts = [
'/courses',

View File

@@ -364,7 +364,7 @@ def _index_bulk_op(request, course_key, chapter, section, position):
try:
int(position)
except ValueError:
raise Http404("Position {} is not an integer!".format(position))
raise Http404(u"Position {} is not an integer!".format(position))
user = request.user
course = get_course_with_access(user, 'load', course_key, depth=2)