Welcome Guest Search | Active Topics | Members

Java Image Uploader 5.0.15.0 Server Redirect Error Options
kolegio1
Posted: Thursday, January 31, 2008 10:13:09 AM
Rank: Newbie
Groups: Member

Joined: 1/29/2008
Posts: 3
Points: 9
I am currently doing work for a client who recently purchased your Dual Image Uploader application. The Active X version seems to work fine in Internet Explorer, however I am getting the following error meesage below with the Java Image Uploader version 5.0.15.0 in Firefox version 2.0.0.11. I am integrating the tool in an ASP.NET 2.0 environment.

The problem occurs when I select some images from the tool and click the Submit button. It gives me a

"The server attempted to redirect you, but server redirects are not supported" error.

Could you please tell me if this is being fixed or has been addressed. I did a search in your forum and found similiar problems including the session data disappearing and implementing a cookie fix but that did not help.


kolegio1 attached the following image(s):
Screenshot.jpg

Alex Makhov
Posted: Friday, February 01, 2008 11:09:31 PM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

Actually I'm almost completely sure the reason of the problem is in Cookies. Your ASP.NET upload processing page tries to get cookies, fails in the case of Java applet and tries to redirect you to the login page. Please, ensure that you have completely done everything right this article says:

PRB: Image Uploader for Java looses HTTP-only cookies.


Sincerely yours,
Alex Makhov
kolegio1
Posted: Monday, February 04, 2008 2:42:26 PM
Rank: Newbie
Groups: Member

Joined: 1/29/2008
Posts: 3
Points: 9
This thread did NOT help me as I mentioned before. There is still something wrong with the Java version of the tool. When adding the code stated in the article the application says: object not set to an instance of an object" when trying to access the cookie.

I looked in the headers and that cookie does not even exist. Only the ASP.NET_SessionId cookie is available. Is there something I have missed or am not including that should have accompanied that article?

Tim
Andrew
Posted: Saturday, February 09, 2008 1:04:07 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 714
Points: 123
Hi Tim,

I am unsure whether the problem still exist - I tried to reproduce it according to information you sent us through email, but was able to upload successfully (I have just emailed you about this). But anyway, I will put my two cents into this problem. Maybe it will be helpful for someone.

In fact this problem is not necessary can be caused by missing cookies. This message appears every time when the server code tries to redirect you to some other page. When it happens, the connection established by Image Uploader is closed with HTTP code 300 (or 301, 302, etc - no matter).

Why it may happen?

1. Situation described in the article Alex refers. Although you tell that it cannot happen in your case, let me outline the reason of server redirect in this scenario. It happens if you are using cookie-based authentication but that cookie under certain circumstances is invisible for IU. So when Image Uploader tries to post anything to the upload processing page, it is deemed to be logged out, and the server redirects you to the login page.

2. Your server code just calls Server.Redirect method directly. I do not thing that it is your case, because I think you would notice that.

3. Some server error occurs (for example, insufficient permissions, syntax error, some unhandled exception, or something like this) and your server is configured to redirect the user to a specific "user-friendly" error page. In this case Image Uploader may get HTTP code 300 instead of HTTP code 500. This is also strange (since ActiveX works fine), but it worth to check out. Just try to debug the server page, maybe you will find anything.

How to fix it?

Well... Obviously it is necessary to check out all three points, especially the first one. I know you hate to hear about http-only cookies stuff again, but this is the most frequent reason of the problem, that's why guys recommend to take a look at it all the way. I think that the best way to understand whether the problem is in them or not is to disable http-only cookies and see whether it will work. To do it you should change appropriate web.config entry like this:

<httpCookies httpOnlyCookies="false" />

If it turned out that none of this helps, namely:

1. Upload still fails with the same error message with httpOnlyCookies = "false".
2. You do not call Server.Redirect anywhere in the Action page.
3. You do not have server-side error in this page (most likely it is not called at all, so the problem occurs before IIS passes the control into this page).

In this case we need to take a deeper look into this. What we need from you is:


  • Link to your page with all necessary login information, etc.
  • Information about the browser you use, etc.
  • If the problem happens from time to time (e.g. if you send a certain number of files or something like this), information how to get it assuredly.
  • Java console output.


I hope this helps.

Sincerely yours,
Andrew Simontsev from Aurigma Team
sb&o
Posted: Monday, September 15, 2008 5:26:27 AM
Rank: Newbie
Groups: Member

Joined: 9/15/2008
Posts: 4
Points: 12
Hello,

I m getting the same probleme then kolegio1 , I followed all the steps defined by
Andre (http://forums.aurigma.com/yaf_postst2174.aspx)

I use
JavaAppletVersion =5.5.1.0
ASP.NET 2.0 environment
Firefox 3.0.1

thank you for your help

SB&O



Java console output.

EndOf Result page
Aurigma ImageUploader version: 5.5.1.0
Current document URL: http://www.mesvacancesenphoto.com/Default.aspx?Content=UploadPictures
Reading cookies
Cookies: __utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221470547.1221473193.37; temporaryOrder=sessionId=dc0ffc15-1b95-4b04-88ea-9b30ed13d6b4&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.17.10.1221473193
Reading referer
Referer: http://www.mesvacancesenphoto.com/Default.aspx?Content=UploadPictures
Aurigma ImageUploader version: 5.5.1.0
Current document URL: http://www.mesvacancesenphoto.com/Default.aspx?Content=UploadPictures
Reading cookies
Cookies: __utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221470547.1221473193.37; temporaryOrder=sessionId=a79b70d6-791b-41fc-aba2-687b94a62209&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.20.10.1221473193
Reading referer
Referer: http://www.mesvacancesenphoto.com/Default.aspx?Content=UploadPictures
Uploading to http://www.mesvacancesenphoto.com/Controller.aspx?cmd=UploadPictureCommand
Setting HTTP params: Host=www.mesvacancesenphoto.com
Cookies:<__utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221470547.1221473193.37; temporaryOrder=sessionId=a79b70d6-791b-41fc-aba2-687b94a62209&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.20.10.1221473193>
Starting upload
15 sept. 2008 12:40:46 org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
ATTENTION: Invalid cookie header: "temporaryOrder=sessionId=a79b70d6-791b-41fc-aba2-687b94a62209&orderExpires=30/09/2008 12:36:12; expires=Tue, 30-Sep-2008 10:36:12 GMT; path=/". Unable to parse expiration date parameter: Tue
Status =[302]
Server redirection attempt: "/Default.aspx?Content=SummaryTransfer"
UploadException occured
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[11]
[ErrorPage]
/Default.aspx?Content=SummaryTransfer
[EndOfErrorPage]
Uploading to http://3suissesphoto.fr/Controller.aspx?cmd=UploadPictureCommand
Trying to resolve host IP...
Host IP = [195.68.104.99]
15 sept. 2008 12:45:01 org.apache.commons.httpclient.HttpMethodBase processResponseHeaders
ATTENTION: Invalid cookie header: "temporaryOrder=sessionId=f5316c5e-e2c6-4d4a-8865-f1d8b9776b5d&orderExpires=30/09/2008 12:40:27; expires=Tue, 30-Sep-2008 10:40:27 GMT; path=/". Unable to parse expiration date parameter: Tue
Status =[200]
Upload complete. Result page:


Dmitry
Posted: Thursday, September 18, 2008 3:10:04 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 771
Points: 949
The problem was resolved in this case.

Sincerely yours,
Dmitry Sevostyanov.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.