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

Notification

Icon
Error

Options
Go to last post Go to first unread
cheekyadmin  
#1 Posted : Tuesday, October 26, 2010 6:24:10 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi

I have been testing the ImageUploader java tool on my website for the last two weeks.

Today, however, it started displaying the message "The server attempted to redirect you to <http://someUrl/> but server redirects are not allowed."

I know why this error occurs and I have eliminated any server redirects from the equation.

The problem is happening in Firefox3.6.11. I can't remember when exactly my Firefox updated but it MAY be due to that??

When I load exactly the same page in IE8, the uploader works as expected.

If it was due to a server redirect, it would have happened in both browsers.

I tried deleting my Firefox cache, but that didn't help.

Do you have any ideas what could be causing this?

Thanks

Dmitry.Obukhov  
#2 Posted : Tuesday, October 26, 2010 7:47:05 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Image Uploader has strange behavior in the new update of Firefox on Macs – JavaScript code is not called always. The reason of it is unknown yet. However, we try to find it.

As for a workaround, you should add these lines at the top of page with Image Uploader:

Code:
<script type="text/javascript">
  // Fix LiveConnect bug in Firefox on Mac OS.
  // By unknown reason java code can't call
  // javascript code, until we call java code
  // from javascript.
  // Put this code in the page header.
  if (/mac/i.test(navigator.platform) && /gecko/i.test(navigator.product) && ('java' in window)) {
   window.java.lang.System.getProperty('java.version');
  }
</script>

I have tested it. Image Uploader worked okay with this workaround. Please try it, and let me know about your results.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

cheekyadmin  
#3 Posted : Tuesday, October 26, 2010 9:41:09 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry - sorry for not mentioning it before - but I am using Windows 7, not Mac.

I tried your fix anyway, and it did not work.

Perhaps the same thing on Windows?

Dmitry.Obukhov  
#4 Posted : Wednesday, October 27, 2010 2:04:12 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Sorry for my misunderstanding.

Could you provide me with a link to your site (login/password if any) where you experience the problem please? I need to test it to find the reason of this problem.

Quote:
Perhaps the same thing on Windows?

Fortunately, Windows works with new update of Firefox (3.6.11) okay – our tests showed that the issue takes place on FF 3.6.11 under Macs, but not on FF 3.6.11 under Windows.

Most probably, your problem is caused by some of these reasons described in our FAQ. Please check it.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

cheekyadmin  
#5 Posted : Wednesday, October 27, 2010 8:38:11 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry

Ok, I have managed to find the exact scenario when this is happening.

It is only happening in Firefox when the server used is "localhost" for example:

This works:

http://cheekywork:8600/ccms/index.cfm?do=album.update&albumId=194

But this does not work and does that redirect:

http://localhost:8600/ccms/index.cfm?do=album.update&albumId=194

In IE, it works for both.

Also, when it fails in Firefox using localhost - just as I click the 'Send' button, it fails immediately. There is no pause like there normally is when it prepares the data. The instant the send button is clicked, it fails.

Hope that helps.

Dmitry.Obukhov  
#6 Posted : Thursday, October 28, 2010 12:39:00 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Please send me content of Java console with trace level 5, when the error occurs.

Looking forward to reply from you.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

cheekyadmin  
#7 Posted : Thursday, October 28, 2010 3:57:35 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry

Let me just begin by saying that the article you linked to below is a little out of date as the instructions therein are totally different to what you actually have to do to get to the console. But I found it nonetheless.

Here is the console output for localhost:

Java Plug-in 1.6.0_22

Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM

User home directory = C:\Users\Cheekyadmin

----------------------------------------------------

c: clear console window

f: finalize objects on finalization queue

g: garbage collect

h: display this help message

l: dump classloader list

m: print memory usage

o: trigger logging

q: hide console

r: reload policy configuration

s: dump system and deployment properties

t: dump thread list

v: dump thread stack

x: clear classloader cache

0-5: set trace level to <n>

----------------------------------------------------

Uploading to http://localhost:8600/ccms/index.cfm?do=album.updateAction&action=addPhotos&albumId=198&photoRights=true

Cookies:<RAILO_ADMIN_LANG=EN; RAILO_ADMIN_LASTPAGE=resources%2Ecustomtags; RAILO_ADMIN_PW_SERVER=%2B3P%5F%5F%5B%3B22DYV%3EUA%2C%20%0A; DEBUGINFO=1; LOGINREMEMBERSpeak to the hand USERPASSWORDHASHSpeak to the hand USERLOGINSpeak to the hand ISUNDERAGE=false; DISPLAY_OPTIONS=3; FILE_SORTORDER=1; QUERY_SORTORDER=1; OUTPUTMAXQUERIES=100; OUTPUTMAXFILES=100; FusionReactorAuthorization.default.railo.cheekywork=Administrator:D774512B4246C73AE2DBBA5DB2DDF062; CFAUTHORIZATION_CHEEKYONLINE2009_20091013=Y2hlZWt5AWJ2aXJnaW4BYWRtaW4%3D; CFAUTHORIZATION_cfcgenerator=YWRtaW4NM0FCODhBN0UxNUFBNTQ5NENBQ0JCNUJCNkM5QTUzQjI4MEQyOTYzNA1jZmNnZW5lcmF0b3ISpeak to the hand JSESSIONID=8430cd2650767af5f0bd543c424e716d1359>

Setting HTTP params: Host=localhost; Port=8600

Starting upload

----------

Status = [302]

Server response: <html>

<head>

<title>Document Moved</title>

</head>

<body>

<h1>Object Moved</h1>

<a HREF="http://localhost:8600/ccms/index.cfm?do=public.showLogin">here</a>

</body>

</html>

----------

Server redirection attempt: "http://localhost:8600/ccms/index.cfm?do=public.showLogin"

UploadException occured

###Error occurred###

Status=[ERROR]

Progress=[0]

ValueMax=[0]

Value=[11]

[ErrorPage]

http://localhost:8600/ccms/index.cfm?do=public.showLogin

[EndOfErrorPage]

Output for exactly the same code, just calling it via it's named server name instead of localhost:

Java Plug-in 1.6.0_22

Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM

User home directory = C:\Users\Cheekyadmin

----------------------------------------------------

c: clear console window

f: finalize objects on finalization queue

g: garbage collect

h: display this help message

l: dump classloader list

m: print memory usage

o: trigger logging

q: hide console

r: reload policy configuration

s: dump system and deployment properties

t: dump thread list

v: dump thread stack

x: clear classloader cache

0-5: set trace level to <n>

----------------------------------------------------

Uploading to http://cheekywork:8600/ccms/index.cfm?do=album.updateAction&action=addPhotos&albumId=198&photoRights=true

Cookies:<CFID=3b45c07e%2D3ca0%2D4551%2Da75b%2D18ab79c06ec6; CFTOKEN=0; LOGINREMEMBERSpeak to the hand DISPLAY_OPTIONS=3; FILE_SORTORDER=1; QUERY_SORTORDER=1; OUTPUTMAXQUERIES=100; OUTPUTMAXFILES=100; USERLOGINSpeak to the hand USERPASSWORDHASH=>

Setting HTTP params: Host=cheekywork; Port=8600

Starting upload

----------

Status = [200]

Server response:

<form

Trace message truncated for length over 10K

EndOf Result page

Dmitry.Obukhov  
#8 Posted : Thursday, October 28, 2010 9:01:13 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Thanks for Java dump.

You have got error with value 11:

Code:
 Server redirection attempt: "http://localhost:8600/ccms/index.cfm?do=public.showLogin"
UploadException occured
###Error occurred###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[11]
[ErrorPage]
http://localhost:8600/ccms/index.cfm?do=public.showLogin
[EndOfErrorPage]

Image Uploader tries to redirect on login page, but the redirection is not supported. Therefore you get the error. Please try the way described in the Preserving Sessions and Authentication Tickets Passed in Cookies erticle, and let me know about the results.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

cheekyadmin  
#9 Posted : Thursday, October 28, 2010 10:45:48 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry.

That makes no sense though because there is NO redirect in my code. This same code is working fine on 3 other servers and in IE8, so why only when I use localhost in Firefox on one browser on one machine does it do it?

That article you sent doesn't even apply to the issue - I am using Coldfusion, not ASP or PHP. And like I said, if that was a problem, it would be experiencing that issue all the time.

Please explain to me, based on your answer above to view this (http://www.aurigma.com/docs/iu/PreservingSessionsandAuthenticationTicketsPassedinCookies.htm) why it works in Firefox using address ONE but not address TWO. Surely if that was the problem it would do it in both? No?

ONE) http://localhost:8600/ccms/index.cfm?do=album.updateAction&action=addPhotos&albumId=198&photoRights=true

TWO) http://cheekywork:8600/ccms/index.cfm?do=album.updateAction&action=addPhotos&albumId=198&photoRights=true

They both use the exact same code - the only thing that changes is the servername, but localhost is the same as cheekywork - they are both the local test machine.

Dmitry.Obukhov  
#10 Posted : Sunday, October 31, 2010 10:13:15 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Sorry for delayed answer.

According to content of Java console, you got different cookies while upload on localhost and cheekywork. Unfortunately, I am not savvy in ColdFusion, and not able to assist you in this question. However, we think that you experience the problem on localhost because of some authentication cookie, which is not uploaded by some reasons. Most probably, this cookie is HTTPOnly. Please check it.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

cheekyadmin  
#11 Posted : Tuesday, November 2, 2010 10:43:17 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry

I tested it again today, and all of a sudden, no problem. No code changes or anything. It just started working. Last time I tried was on Friday, about 4/5 days ago.

You sure this is not cache / cookie related to the control? I do not set any specific cookies in coldfusion. If I did, this issue would have occurred on all of my servers,not just localhost.

Dmitry.Obukhov  
#12 Posted : Thursday, November 4, 2010 1:10:38 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi Paul,

Thanks for posting your comment.

Unfortunately, I cannot say what the exact reason of the problem was. The behavior of Image Uploader you described was strange.

We had the similar problems before, but they occurred in the cases described in the documentation.

Please let me know if you have any additional questions.

Edited by user Thursday, November 4, 2010 1:11:16 PM(UTC)  | Reason: Not specified

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.