Re: Wosid suppression broken in 5.4?
Re: Wosid suppression broken in 5.4?
- Subject: Re: Wosid suppression broken in 5.4?
- From: Ian Joyner <email@hidden>
- Date: Mon, 17 Dec 2007 17:32:43 +1100
Actually, I think this is not the problem – printing out the result
from this function shows no ?wosid on the end:
Video_library (Video_library.java:download_link:1184) - result is /cgi-
bin/WebObjects/Stream.woa/wa/download_video?filePath=/Library
/Stream/Movies/StreamatWRU.pdf
so it is tacked on somewhere else. It also seems strange that it is
tacked on as ?wosid= and not &wosid=. The latter form actually works.
Generated URL:
http://ians-imac.local:52934/cgi-bin/WebObjects/Stream.woa/wa/download_video?filePath=/Library/Stream/Movies/StreamatWRU.pdf
?wosid=o4LDorrMwnW3kY7AgrxYZM
whereas:
http://ians-imac.local:52934/cgi-bin/WebObjects/Stream.woa/wa/download_video?filePath=/Library/Stream/Movies/StreamatWRU.pdf&wosid=o4LDorrMwnW3kY7AgrxYZM
^
^^
works.
So why is 5.4 adding this onto the end of the download_link string to
form the URL, and shouldn't it be using '&' to separate parameters
anyway?
Thanks
Ian
On 17/12/2007, at 4:47 PM, Ian Joyner wrote:
I have this little bit of code to invoke a direct action to download
a file:
public String download_link () {
return context ().directActionURLForActionNamed ("download_video",
new NSDictionary <String, Object> (
new Object [] {((Video_file)folder_list.objectAtIndex
(row_index)).getAbsolutePath (), Boolean.FALSE},
new String [] {"filePath", "wosid"}));
}
The dictionary is setting the wosid key to false. This is working
fine on Tiger with WO 5.3, but on 5.4 I get:
Error downloading file: java.io.FileNotFoundException: /Library/
Stream/Movies/StreamatWRU.pdf?wosid=r1G8zBVYXWcrnoGP6CdDu0 (No such
file or directory)
with the wosid stuff on the end of the URL, which does not appear on
5.3.
Is this an introduced bug in 5.4? Do I need to add something else?
Thanks
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden