﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31459	URL path parameter regex too lenient.	Adam Johnson	Adam Johnson	"A [https://forum.djangoproject.com/t/noreversematcherror-path-and-args-vs-kwargs/1923 user on the Django forum] tried to configure a URL like `books/<int:book.id>/`. This was successfully parsed as a URL, but no converters applied.

This is because the left hand side of the regex for finding path parameter syntax looks for converter names with ""anything not a colon or >"". But the right hand side matches only word characters.

If we matched ""anything not a >"", then the attempted parameter would have been matched, and ""book.id"" would have hit the guard we have for invalid identifiers, with a message like:

> ""URL route 'books/<int:book.id>/' uses parameter name 'book.id' which isn't a valid Python identifier.""
"	Cleanup/optimization	closed	Core (URLs)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
