Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-06 Thread Dennis Falling
I finally got around to implementing the fix and am having issues on the
server... It basically is thinking that the ;jsessionid... is part of the
command name being called:
UnsupportedCommandException: cmd
'uploadfile;jsessionid=4913B7A92119CA91D683D8F884829475' is not supported.
Anyone know a fix for this, or a forum that would be more appropriate to
ask, as this is more of a Tomcat/jboss question?

Thanks.



On Thu, Jun 5, 2008 at 5:27 PM, Dennis Falling [EMAIL PROTECTED] wrote:

 Thanks for the reply...  That information was exactly what I needed.  I'm
 actually really surprised that I hadn't run across any of it- I've spent
 several hours googling trying to find a solution.  Thanks a lot!

 -dennis


 On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley [EMAIL PROTECTED]
 wrote:

   I'm guessing it's because the session is not retained when performing a
 file upload to the server - a new session id is created for each
 FileReference upload attempt.

 This is a known issue with various workarounds.
 Modify your server code to ignore any session or login details to be sure
 this is the problem you are seeing. If it works when you remove any
 requirement for authentication or any check of the session info, then you're
 one step closer to fixing the issue.

 You will then need to:

 1. Store the session number in Flex and send it back. On the server you
 validate against the sent session (a new one will still be created), then
 send back the new session details.

 or...

 2. Ignore a requirement on the session when doing the actual upload. Find
 another way of verifying the user is logged in.

 http://bugs.adobe.com/jira/browse/SDK-12851
 http://bugs.adobe.com/jira/browse/FP-78
 http://thanksmister.com/?p=59
 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


 good luck,

 jon


 On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

  I have this problem for standard uploads too, not just SSL...  Again, it
 works fine in IE, so I know that the address and file are valid.  Any ideas?

 On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED]
 wrote:

 I searched the web and the group and found a thread going about this
 without a resolution (started with msg. 88102).  Does anyone know a way
 around this?  I need to allow the user to upload files over SSL, which works
 fine from IE but explodes in Firefox.

 Code:
 var url:String =
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);

 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

 Watching it in Wireshark I see the initial post, then a number of
 subsequent lines Continuation or non-HTTP traffic.

 Thanks!


  





Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Jon Bradley
I'm guessing it's because the session is not retained when performing  
a file upload to the server - a new session id is created for each  
FileReference upload attempt.


This is a known issue with various workarounds.

Modify your server code to ignore any session or login details to be  
sure this is the problem you are seeing. If it works when you remove  
any requirement for authentication or any check of the session info,  
then you're one step closer to fixing the issue.


You will then need to:

1. Store the session number in Flex and send it back. On the server  
you validate against the sent session (a new one will still be  
created), then send back the new session details.


or...

2. Ignore a requirement on the session when doing the actual upload.  
Find another way of verifying the user is logged in.


http://bugs.adobe.com/jira/browse/SDK-12851
http://bugs.adobe.com/jira/browse/FP-78
http://thanksmister.com/?p=59
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


good luck,

jon


On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

I have this problem for standard uploads too, not just SSL...   
Again, it works fine in IE, so I know that the address and file are  
valid.  Any ideas?



On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED]  
wrote:
I searched the web and the group and found a thread going about  
this without a resolution (started with msg. 88102).  Does anyone  
know a way around this?  I need to allow the user to upload files  
over SSL, which works fine from IE but explodes in Firefox.


Code:
var url:String = Services.getCommandServiceURL 
(FileDelegate.UPLOAD_FILE_COMMAND);

var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
_file.upload(request,fileData,false);

When run in Firefox, I get a flash exception:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O  
Error.


Watching it in Wireshark I see the initial post, then a number of  
subsequent lines Continuation or non-HTTP traffic.


Thanks!




Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Dennis Falling
Thanks for the reply...  That information was exactly what I needed.  I'm
actually really surprised that I hadn't run across any of it- I've spent
several hours googling trying to find a solution.  Thanks a lot!

-dennis

On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley [EMAIL PROTECTED]
wrote:

   I'm guessing it's because the session is not retained when performing a
 file upload to the server - a new session id is created for each
 FileReference upload attempt.

 This is a known issue with various workarounds.
 Modify your server code to ignore any session or login details to be sure
 this is the problem you are seeing. If it works when you remove any
 requirement for authentication or any check of the session info, then you're
 one step closer to fixing the issue.

 You will then need to:

 1. Store the session number in Flex and send it back. On the server you
 validate against the sent session (a new one will still be created), then
 send back the new session details.

 or...

 2. Ignore a requirement on the session when doing the actual upload. Find
 another way of verifying the user is logged in.

 http://bugs.adobe.com/jira/browse/SDK-12851
 http://bugs.adobe.com/jira/browse/FP-78
 http://thanksmister.com/?p=59
 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


 good luck,

 jon


 On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

 I have this problem for standard uploads too, not just SSL...  Again, it
 works fine in IE, so I know that the address and file are valid.  Any ideas?

 On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote:

 I searched the web and the group and found a thread going about this
 without a resolution (started with msg. 88102).  Does anyone know a way
 around this?  I need to allow the user to upload files over SSL, which works
 fine from IE but explodes in Firefox.

 Code:
 var url:String =
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);

 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

 Watching it in Wireshark I see the initial post, then a number of
 subsequent lines Continuation or non-HTTP traffic.

 Thanks!