Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
AAAlex  
#1 Posted : Saturday, November 26, 2011 9:37:03 AM(UTC)
AAAlex

Rank: Newbie

Groups: Member
Joined: 10/26/2011(UTC)
Posts: 4

Hello,
I am upgrading Aurigma Image Uploader from version 5 to version 7.

I have some ruby code which is currently working with version 5 that is showing some strange behavior with version 7.

Tracing through the java console I see the following:
Quote:
Aurigma Image Uploader: reading cookies...
Aurigma Image Uploader: read document cookies: __utma=****.823036208.1271567104.1322320041.1322322733.660; __utmz=****.1319773248.624.178.utmcsr=qa.****.com|utmccn=(referral)|utmcmd=referral|utmcct=/year_book/upload/91; __utmc=252063883; __utma=5928115.****.1322323004.1322323004.1322323004.1; __utmb=5928115.26.10.*****; __utmc=5928115; __utmz=5928115.***.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Aurigma Image Uploader: chunk upload: off
Aurigma Image Uploader: uploading to http://qa.upload.***.com/upload
network: Connecting http://qa.upload.****.com/upload with proxy=DIRECT
Aurigma Image Uploader: using proxy: null
Aurigma Image Uploader: probing action URL with test request
Aurigma Image Uploader: request cookies: <__utma=***.823036208.1271567104.1322320041.1322322733.660; __utmz=***.1319773248.624.178.utmcsr=qa.schoolchapters.com|utmccn=(referral)|utmcmd=referral|utmcct=/year_book/upload/91; __utmc=252063883; __utma=5928115.****.1322323004.1322323004.1322323004.1; __utmb=5928115.26.10.1322323004; __utmc=5928115; __utmz=5928115.1322323004.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)>
network: Connecting http://qa.upload.****.com:80/ with proxy=DIRECT
Aurigma Image Uploader: warning: test HEAD request failed with code 500, response page:

Aurigma Image Uploader: request cookies: <__utma=****.823036208.1271567104.1322320041.1322322733.660; __utmz=***.1319773248.624.178.utmcsr=qa.****.com|utmccn=(referral)|utmcmd=referral|utmcct=/year_book/upload/91; __utmc=252063883; __utma=5928115.****.**.1322323004.1322323004.1; __utmb=5928115.26.10.**; __utmc=***; __utmz=5928115.****.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)>
network: Connecting http://qa.upload.***.com:80/ with proxy=DIRECT
Aurigma Image Uploader: upload completed successfully. Response page:


And on the server itself (the qa.upload.*** server) I see what looks like 2 requests, which appear to be truncated versions of the final request:
{"action"=>"upload_file", "controller"=>"uploads"}

My guess is that they are being triggered with the test HEAD request -- which is something the server wasn't expecting.

So my question is -- what should I return for that? Or can I configure the URL the test request is going to?

The base url is throwing an error on the server now, and its really clogging up the log.

Thanks,
Alex
Dmitry.Obukhov  
#2 Posted : Monday, November 28, 2011 2:18:20 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Alex,

It is not problem actually. Image Uploader sends HEAD request before POST to check if authentication is needed. In this case, we should not try to save files in HEAD requests. You need to add similar checking to your server-side code (unfortunately, I am not savvy in Ruby. Thus I shared PHP code snippet.):
Code:

if ($_SERVER['REQUEST_METHOD'] != 'POST') {
  exit();
}
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
AAAlex  
#3 Posted : Saturday, December 17, 2011 1:24:09 PM(UTC)
AAAlex

Rank: Newbie

Groups: Member
Joined: 10/26/2011(UTC)
Posts: 4

Thank you Dmitry.

I added this line --

if request.head?

And will ignore those.

Alex
Dmitry.Obukhov  
#4 Posted : Monday, December 19, 2011 7:07:46 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Alex,

I am glad that you resolved the problem. If you have any additional questions, please feel free to let me know. I will be pleased to assist you.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.