360 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
Latest 7 Posts
Oh what a difference an S makes
Thu, Mar 11th 2010 80
New family blog
Thu, Mar 11th 2010 26
My mother helps stop MSDS (Memory Stick Disappearnce Syndrome)
Mon, Mar 8th 2010 91
Is "a" Sandwich a category error and can mayonasie dribble be accurately measured
Sat, Mar 6th 2010 34
Good Music , good company and craic in the nineties @ the Beflast songwriters festival
Fri, Mar 5th 2010 21
If curling were easy it would be called Hockey
Mon, Mar 1st 2010 50
ILUG 10 Preperations gathers pace ... poster ideas
Wed, Feb 24th 2010 110
Top 10
ILUG 10 Preperations gathers pace ... poster ideas
Wed, Feb 24th 2010 110
My mother helps stop MSDS (Memory Stick Disappearnce Syndrome)
Mon, Mar 8th 2010 91
Access the clipboard in Javascript
Sun, Feb 14th 2010 87
Oh what a difference an S makes
Thu, Mar 11th 2010 80
....and while I am at it, Ireland WTF?
Sun, Feb 14th 2010 59
If curling were easy it would be called Hockey
Mon, Mar 1st 2010 50
A new 419 Scam arrived this morning and I just couldnt resist
Fri, Dec 11th 2009 41
Enthusions and Indifferons - The physics of not being arsed
Sun, Feb 14th 2010 40
A Credit Crunch Variation on a 419 Theme
Fri, Oct 24th 2008 37
Is "a" Sandwich a category error and can mayonasie dribble be accurately measured
Sat, Mar 6th 2010 34


Bit of a problem with Firefox, Safari and FLEX uploads to a Domino Server
   

After much head scratching over an issue I had with uploads FLEX and Firefox, namely authenticated uploads work in IE but do not in Firefox i have discovered the cause. As described by Jake Howlett over on his excellent CodeStore site FLEX uses a class called the FileReference to get and then upload the file or files the user selects.

The problem comes in that for some reason Firefox does not sent the DomAuthSessId cookie over in the header.. for example here is a header receieved from FLEX from an authenticated session using the FLEX HTTPRequest object.

*** New Request -- Parse and Check Request: Session 7, Thread 1ba4, Clock 1602816
GET /econtent/AC_OETags.js HTTP/1.1
Host: www.atuin.com:81
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.atuin.com:81/econtent/econtent.html
Cookie: DomAuthSessId=47F0EA4947495C8C4C6E9FAF6665CD73
If-Modified-Since: Thu, 05 Nov 2009 00:07:20 GMT

and here is the next header received by the server from FLEX again running on Firefox in the same session using the FileReference.upload() method

*** New Request -- Parse and Check Request: Session 8, Thread 7c4, Clock 1617184
POST /econtent.nsf/Gallery?createDocument HTTP/1.1
Accept: text/*
Content-Type: multipart/form-data; boundary=----------GI3ae0Ij5gL6ei4KM7GI3ae0Ef1ei4
User-Agent: Shockwave Flash
Host: www.atuin.com:81
Content-Length: 8644
Connection: Keep-Alive
Cache-Control: no-cache
As you can see no DomAuthSessId.. and what happens well the Domino Server does what it is meant to do, it sends back the Logon screen to the Flex program. In case you are wondering this data was obtained from my server using the following Server Console commands prior to test running the FLEX
tell http debug thread on | off (default level)
tell http debug postdata on | off (for client POST data)
tell http debug responsedata on | off (for server response data)
Now this is a major FUBAR and it is odd to be complaining about FF and not IE but there you go. It seems FF starts an entirely new browser instance to do the FileReference.upload() hence the no DomAuthSessId being passed.

However all is not lost you think, the FileReference takes a URLRequest object and it has the ability to be coded to load the Header with values should you need them. Well yes it does and you can set any number of values in the URLRequest object BUT and it is a bigh BUT Flex ignores them, so there is no way out that way!.

Nothing I have tried to date allows me to use the pre-authentication of the browser instance my flex is running in to send a file to the server via the FileReference object. FECK! and yet it works perfectly in IE8 (a fact which is particularly galling) it is FireFox (and from my testing Safari) that are the problems on this occasion and it holds true for Flex 3 and Flex 4 and from my browsing of the Adobe site not likely to be acknowledged as a problem let alone fixed any time soon.

So far the only work around I can come up with is to spawn out to a standard browser child window upload the file there using a Domino File Upload control and then use an external JS function to talk to the parent flex program when the file sucessfully uploads.. which is a bloody pain in the arse!

The whole situation is not helped by the Domino server not liking a standard POST method of getting data from the client to the server..

Anyway there you go .. back to the head scratching

---------------------
http://feedproxy.google.com/~r/dominoyesmaybe/~3/V741JdG1ccQ/bit-of-problem-with-firefox-safari-and.html
Nov 08, 2009
30 hits



Recent Blog Posts
80


Oh what a difference an S makes
Thu, Mar 11th 2010 3:24p   Steve McDonagh
Just comming into my blog and typed this http://doiminoyesmaybe.blogpot.com and ended up a href="http://dominoyesmaybe.blogpot.com/"here/a.. just my luck..I have a german porn star as a doppleganger and a reglious site as a typo link.. hey ho!br / div class="separator" style="clear: both; text-align: center;"a href="http://4.bp.blogspot.com/_Fkx1-w7uSqA/S5lLXnPFfzI/AAAAAAAABAU/eBgneBMjzlc/s1600-h/ohno.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"img border="0" height="124" sr [read] Keywords: blogger
26


New family blog
Thu, Mar 11th 2010 3:24p   Steve McDonagh
Just a heads up.. I have started a new non-techie blog for the McDonagh Clan over at http://slightlydoolally.com br / I will keep up the techie particularly Yellow tinted posts here but all the "noise" i was infamous for will now be over on Slightly Doolally, so I might be able to reclaim a certain level of professionalism here ... no perhaps not.. ;)br / br / Ohh my better half has started blogging as an assiociated Admin on Slightly Doolally, so if you do browse over ... please say hi to us bo [read] Keywords: admin blogger blogging
91


My mother helps stop MSDS (Memory Stick Disappearnce Syndrome)
Mon, Mar 8th 2010 6:25a   Steve McDonagh
We have all been there.. we are in a meeting or are called to a colleagues PC and we feel we really really need to share some file with that user. So out comes the memory stick and into the other PC it goes .. and as soon as the file is copied your prized memory stick just disappears... poof ... gone.br / br / I have a theory that there is a eddy in the space time continium, the memory chips on the memory stick act as a strange attractor and becon the eddy towards the memory stick and once it ge [read] Keywords: ilug blogger office twitter
34


Is "a" Sandwich a category error and can mayonasie dribble be accurately measured
Sat, Mar 6th 2010 11:25a   Steve McDonagh
I was sat in a href="http://www.groundcoffee.net/pages/about.htm"Ground/a Having the usual excellent Chill, chicken, bacon, roast pepper, cheese and onion panini with a white chocolate Moccha no cream (Well i am on a diet) Now it was pointed out to me recently when you buy a panini you are actually doing nothing of the sort! You are noshing down on a PANINO for PANINI is the plural.br / br / Now it occured to me that a Ground Panino is a foot long and to fit on the plate the very nice baristas c [read] Keywords: blogger mac
21


Good Music , good company and craic in the nineties @ the Beflast songwriters festival
Fri, Mar 5th 2010 9:24p   Steve McDonagh
Having spend the last 10 weeks in the purgatory that is the post Christmas anticlimax I decided that a bit of fun was in order. So I booked SWMBO and myself into the a href="http://www.dukesatqueens.com/"Dukes Hotel/a in Belfast for the weekend of the a href="http://www.belfastnashville.com/"6th Annual Guinness Belfast Nashville Songwriters Festival/a now that might sound a little bit too country and western for my taste and yes there was some Camp;W but we managed to avoid it :-)br / br / I hav [read] Keywords: blogger community email ipod myspace wiki
50


If curling were easy it would be called Hockey
Mon, Mar 1st 2010 6:24p   Steve McDonagh
span class="goog-spellcheck-word"T'other/span span class="goog-spellcheck-word"nite/span I was chatting to span class="goog-spellcheck-word"Duffbert/span about the fine art of Curlingbr / Whichnbsp; rests vampire like in the popular consciousness for 4 years andbr / then explodes on the moonbeam of publicity that the winter Olympics brings.br / br / All of a sudden the media is full of "houses", "Skips" "Stones" and "Ends"br / However as my chat with the bold Mr span class="goog-spellcheck-word" [read] Keywords: blogger mac
110


ILUG 10 Preperations gathers pace ... poster ideas
Wed, Feb 24th 2010 6:23p   Steve McDonagh
The throb of antipication has moved from barely noticable into "shit itis only 9 months away" mode. 9 month's eh? I have time to get pregnant and give birth before the crowds of the faithful descend on Ireland for another round of ILUGy excitment.br / br / Here are a few posters ideas that may or may not be usedbr / br / div class="separator" style="clear: both; text-align: center;"/divdiv class="separator" style="clear: both; text-align: center;"/divdiv class="separator" style="clear: both; tex [read] Keywords: ilug blogger




87


Access the clipboard in Javascript
Sun, Feb 14th 2010 9:24a   Steve McDonagh
Now here is a wee something I fell over the other day whislt trying to figure out a way of copy and pasting a text stream from a Turdcopy; document to a text area on a form. It would be really useful to grab the clipboard contents .. do some RegExp replaces on it and then import it into the text area.br / br / Well after a moment or two's research you can be done in IE and you have to tweak Moz browsers a href="http://www.mozilla.org/editor/midasdemo/securityprefs.html"see here/a to allow it to [read] Keywords: blogger javascript
59


....and while I am at it, Ireland WTF?
Sun, Feb 14th 2010 8:23a   Steve McDonagh
... ohh and while I am at the keyboard and logged on to the blog ...What the hell were Ireland thinking yesterday? Jeeze I mean to say what is the point of me getting all prepared with loads of beer and crisps and the other accoutrements of 6 Nations watcherdom and then you sent the under 13's instead of the real international team?br / br / Go home dig out the SKY+ box and watch the Wales vs Scotland game, now THAT was rugby at it's best!div class="blogger-post-footer"img width='1' height='1' s [read] Keywords: blogger
40


Enthusions and Indifferons - The physics of not being arsed
Sun, Feb 14th 2010 8:23a   Steve McDonagh
It has been a while since I last sat at the keyboard to write a blog post of any kind and to be honest I think I reached the rubicon between "arsed" / "can't be arsed" and Julius Caesar like I marched resolutely in the territory "can't be arsed". Mind you instead of declaiming "ālea iacta est" (The die is cast) or something equally as memorable I think I may have sighed deeply and poured another cup of coffee.br / br / There comes a time in every diariest's life where you start to slip into the [read] Keywords: domino blogger blogging office outlook




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - FAQ - Mobile Edition