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:
1
AUTHORS
1
AUTHORS
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user