Headers being stripped from POST to a blobstore uploadURL

102 views
Skip to first unread message

JohnGB

unread,
Feb 19, 2016, 8:43:37 AM2/19/16
to Google App Engine

Note: This is a crosspost from google-appengine-go as I wasn't sure which group would be more applicable as I'm using Go, but I don't think the language has anything to do with this issue.
My understanding of the docs, as well as how it has worked up until about the last week is:
  1. when using blobstore.UploadURL, a successPath is specified to be called after a successful POST.
  2. blobstore.UploadURL returns a URL to upload a file to.
  3. a HTTP POST is made to the given URL with the file(s) to upload.
  4. if that POST is successful, the blobstore calls the successPath given in the blobstore.UploadURL.
  5. all headers from the POST request are passed onto the successPath request.
In reference to point 5, the documentation states (with my own emphasis):

When the Blobstore rewrites the user's request, the MIME parts of the uploaded files have their bodies emptied, and the blob key is added as a MIME part header. All other form fields and parts are preserved and passed to the upload handler.

Up until this week, that is what was happening, but then suddenly I found that all headers are being stripped.  Additionally, there is an (I think) new header "X-Appengine-Blobupload", which is set to "true".

Can someone please fill me in on what is going on, as stripping the headers has broken functionality.

~ John

John Lucena

unread,
Feb 19, 2016, 5:21:38 PM2/19/16
to Google App Engine
Hi John,

There was an issue starting on Wed where by the Authorization: header was stripped. That issue was corrected last night.
Is your code working now as expected?
Also, what specific headers did you find missing as we were only seeing issues with applications that relied on the Authorization: header.

Thanks,
-John

John Beckett

unread,
Feb 24, 2016, 3:52:24 AM2/24/16
to google-a...@googlegroups.com
Hi John,

It was the Authorization header that I was using, so I can't comment on any other headers.  It seems to be working correctly now, thanks.

~ John

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/CCL_9sgjdu0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/330684d6-6580-43e3-80d6-a669b925de34%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages