Opened 6 years ago

Closed 6 years ago

#29779 closed Uncategorized (invalid)

url calling the wrong function

Reported by: Ted Chang Owned by: nobody
Component: Uncategorized Version: 2.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In urls.py, I have 6 urls which return JsonResponse.
3 of the names started with json_rows_, say json_rows_A, json_rows_B, json_rows_C
3 of the names started with json_column_defs_, say json_column_defs_A, json_column_defs_B, and json_column_defs_C

The first 3 urls all returned the same result corresponding to json_rows_A.
The last 3 urls all returned the same result corresponding to json_column_defs_A.

If I commented out json_rows_A and json_column_defs_A, then the url alls all returned the JsonRepsonse associated with the B urls.

I found a workaround making sure that the urls had unique prefixes, but am perplexed on why the wrong data was being returned.
Any idea what may be causing this bug?

I was using Django 2.0.2 and just upgraded 2.1.1 in hopes that the upgrade might solve this issue. I am using Version 69.0.3497.100 (Official Build) (32-bit), and also tried clearing all caches multiple times.

Change History (1)

comment:1 by Ted Chang, 6 years ago

Resolution: invalid
Status: newclosed

Never mind, I realized that I forgot the $ at the end of the url regex.

Note: See TracTickets for help on using tickets.
Back to Top