[AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread brad chick
Recently, we upgraded to 3.5.6 from 3.3.1. Unfortunately, our file uploads
broke. Now, aolserver doesn't upload pc files properly. These files have
what seems be browser crud appended to them:

-7d32da2b27043a Content-Disposition: form-data;
name=x  20
-7d32da2b27043a   Content-Disposition: form-
data; name=y 11 -7d32da2b27043a--

On the other hand, unix files don't have this issue when uploaded through a
browser to aolserver.

Thanks


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread Mark Page
Could you add this to the bug list at sourceforge?  I'll do it for you
if you are unable, but it would be better if the one who found the
problem entered it.

Thanks

brad chick wrote:

  Recently, we upgraded to 3.5.6 from 3.3.1. Unfortunately, our file
  uploads
  broke. Now, aolserver doesn't upload pc files properly. These files have
  what seems be browser crud appended to them:
 
  -7d32da2b27043a Content-Disposition:
  form-data;
  name=x  20
  -7d32da2b27043a   Content-Disposition: form-
  data; name=y 11 -7d32da2b27043a--
 
  On the other hand, unix files don't have this issue when uploaded
  through a
  browser to aolserver.
 
  Thanks
 
 
  --
  AOLserver - http://www.aolserver.com/
 
  To Remove yourself from this list, simply send an email to
  [EMAIL PROTECTED] with the
  body of SIGNOFF AOLSERVER in the email message. You can leave the
  Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread Scott Goodwin
The text beginning at Content-Dis... should be on the next line by
itself. If the browser hasn't changed, but the server has, then there
is something on the server side that's at fault. How are you processing
the incoming files? I.e. show us the code that touches file uploads in
your ADP or Tcl lib.
/s.

On Thursday, October 2, 2003, at 01:50  PM, brad chick wrote:

Recently, we upgraded to 3.5.6 from 3.3.1. Unfortunately, our file
uploads
broke. Now, aolserver doesn't upload pc files properly. These files
have
what seems be browser crud appended to them:
-7d32da2b27043a Content-Disposition:
form-data;
name=x  20
-7d32da2b27043a   Content-Disposition:
form-
data; name=y 11 -7d32da2b27043a--
On the other hand, unix files don't have this issue when uploaded
through a
browser to aolserver.
Thanks

--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
[EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread brad chick
Sorry about that original paste of the garbage at the end of the files. I
messed up the returns. Here's a better (unadultered) example:

-7d37523500ba
Content-Disposition: form-data; name=x
18
-7d37523500ba
Content-Disposition: form-data; name=y
12
-7d37523500ba--


Here's a snippet of some code:

set tmp_filename [ns_queryget upload_file.tmpfile]
# testing
set tempfile [ns_info pageroot]/confirm/tmp/temp_upload.csv

ns_cp $tmp_filename $tempfile


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.


Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread Tim Moss
I might just be related to the problem I spotted ages ago with the form
processing code?
Not sure if the patch I made made it into CVS.

See this thread on the list: Odd problem with nsadmin
I think the jist of it was that in the code the data that had been POSTed to
the server was not NULL terminated various ns_ commands would use the whole
string rather than use the first Content Length characters.  The patch I
suggested BULL terminated the data at 'Content Length' so if there was some
other random data lying around then it would be ignored.

Are you using IE6 by any chance?  This was adding non-standard extra CRLF
pairs to posted form data.

Tim

 -Original Message-
 From: AOLserver Discussion
 [mailto:[EMAIL PROTECTED] Behalf
 Of Scott Goodwin
 Sent: Thursday, October 02, 2003 7:28 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6


 The text beginning at Content-Dis... should be on the next line by
 itself. If the browser hasn't changed, but the server has, then there
 is something on the server side that's at fault. How are you
 processing
 the incoming files? I.e. show us the code that touches file uploads in
 your ADP or Tcl lib.

 /s.


 On Thursday, October 2, 2003, at 01:50  PM, brad chick wrote:

  Recently, we upgraded to 3.5.6 from 3.3.1. Unfortunately, our file
  uploads
  broke. Now, aolserver doesn't upload pc files properly. These files
  have
  what seems be browser crud appended to them:
 
  -7d32da2b27043a Content-Disposition:
  form-data;
  name=x  20
  -7d32da2b27043a   Content-Disposition:
  form-
  data; name=y 11 -7d32da2b27043a--
 
  On the other hand, unix files don't have this issue when uploaded
  through a
  browser to aolserver.
 
  Thanks
 
 
  --
  AOLserver - http://www.aolserver.com/
 
  To Remove yourself from this list, simply send an email to
  [EMAIL PROTECTED] with the
  body of SIGNOFF AOLSERVER in the email message. You can leave the
  Subject: field of your email blank.


 --
 AOLserver - http://www.aolserver.com/

 To Remove yourself from this list, simply send an email to
 [EMAIL PROTECTED] with the
 body of SIGNOFF AOLSERVER in the email message. You can
 leave the Subject: field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of 
your email blank.