#26059: BrokenLinkEmailsMiddleware flagging invalid *referer* URL
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  nobody
  marktranchant          |
         Type:  Bug      |     Status:  new
    Component:  Core     |    Version:  1.9
  (URLs)                 |
     Severity:  Normal   |   Keywords:  BrokenLinkEmailsMiddleware, referer
 Triage Stage:           |  Has patch:  0
  Unreviewed             |
Easy pickings:  0        |      UI/UX:  0
-------------------------+-------------------------------------------------
 My project has a URL for users in the format {{{/staff/$USERNAME}}}. The
 view contains a form allows the user to update their details and redirects
 to {{{/staff}}} on submission.

 Recently (since either 1.9 or 1.9.1), I've been getting Broken Link email
 alerts without a corresponding 404 in the {{{nginx}}} server logs. It
 turns out these are being generated when the user updates their username,
 so when the redirect occurs, {{{/staff/$OLD_USERNAME}}} (the referer URL)
 is no longer valid.

 My project has not changed in the way it processes these requests: this is
 a new feature/bug/regression in Django, as far as I can tell.

 {{{
 Referrer: https://myproject/staff/wonko_the_sane/
 Requested URL: /staff
 User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101
 Firefox/43.0
 IP address: 127.0.0.1
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26059>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.476eb5d2f524e7c23ad8ccbadba98df2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to