﻿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
32698	Move HttpRequest.get_raw_uri() to ExceptionReporter._get_raw_insecure_uri().	Adam Johnson	Hasan Ramezani	"`get_raw_uri()` is undocumented, insecure alternative to `build_absolute_uri(None)`. Django used it internally until ea542a9c7239b5b665797b7c809f1aceb0b412cf / #28007 (4 years ago). Since then it only exists in tests.

The only ticket mentioning `get_raw_uri()` is #27506, recommending its use in the opbeat python integration.

GitHub code search reveals [https://github.com/search?l=Python&q=%22request.get_raw_uri%22&type=Code 1000 hits for `get_raw_uri`], but [https://github.com/search?l=Python&q=%22request.build_absolute_uri%22&type=Code 40,000 hits for `build_absolute_uri`].

Users seem to be stumbling upon `get_raw_uri()`, e.g. from IDE autocompletion, when they want `build_absolute_uri()`.

I think we should deprecate it. Niche use cases, such as APM packages like opbeat, can read the internal attributes of `HttpRequest` instead."	Cleanup/optimization	closed	HTTP handling	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
