﻿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
27506	HttpRequest.build_absolute_uri throws DisallowedHost	Daniel Hahler	nobody	"I've noticed that using `HttpRequest.build_absolute_uri()` might throw `DisallowedHost`, which looks like an unexpected side effect.

This is used for example by opbeat_python (https://github.com/opbeat/opbeat_python/blob/1b1e299d84b902c362e5833d6990e61b80c4a29e/opbeat/contrib/django/client.py#L125, called when capturing (https://github.com/opbeat/opbeat_python/blob/1b1e299d84b902c362e5833d6990e61b80c4a29e/opbeat/contrib/django/client.py#L149)) to add additional information to a captured event.

This happens already during some exceptional state, where an extra exception causes extra issues - another project being affected seems to be django-slack (https://github.com/lamby/django-slack/issues/40).

I've not investigated much, but it looks like Django uses this as a central place to handle/throw the `DisallowedHost` exception.

Is there another API that should be used instead?"	Cleanup/optimization	closed	HTTP handling	1.10	Normal	invalid		Carl Meyer Florian Apolloner	Unreviewed	0	0	0	0	0	0
