Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3F7110263 for ; Fri, 18 Oct 2013 08:52:47 +0000 (UTC) Received: (qmail 44514 invoked by uid 500); 18 Oct 2013 08:52:43 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 44423 invoked by uid 500); 18 Oct 2013 08:52:42 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 44409 invoked by uid 99); 18 Oct 2013 08:52:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 08:52:41 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.223.179] (HELO mail-ie0-f179.google.com) (209.85.223.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 08:52:36 +0000 Received: by mail-ie0-f179.google.com with SMTP id aq17so6204734iec.10 for ; Fri, 18 Oct 2013 01:52:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=ub5+Y5bDuVsDZoSFL9RC0i4hADPfQYzBNpi7zXsoA7s=; b=Bv+A72nVC8rtcPJi0haH3yD7zqQCqbTONW6o8AJUU+JDin8lDHD+NV4NCM/1aZJ3zR MAOrfLffXTgnMLltdDy+XBqcqEzH9H9nrNPFFk71kSPEaJsRfjUkyqP7G6EqqNsicJYg 75Yzqzh/d0tG82xJYyHEClPN7cjJrBQZbYVQC/6Qe0zDs8Sp/p7mAiWoDP7X4QkCBwH7 0NnJW9SK6tpVWdjMPGHQyMeQshsweGMa9G6cOnz/xHxX34QNVVzQeW3NImIxIfTP6ZoO uhvv/ByFzkP7OGz7ndn2wWMZrmzF4alVT+Vd0WmItRH8Pu5gbZbWwk+CTjotWZ9lyXwq WRmw== X-Gm-Message-State: ALoCoQnNN4r/QJcvzkoPod55GUoDKSkc58ROx5VyrmipicNwJj1eFLGXCJxlMleV6Aeoerj7UjXA MIME-Version: 1.0 X-Received: by 10.50.83.97 with SMTP id p1mr1238110igy.41.1382086334820; Fri, 18 Oct 2013 01:52:14 -0700 (PDT) Received: by 10.64.6.7 with HTTP; Fri, 18 Oct 2013 01:52:14 -0700 (PDT) In-Reply-To: References: <2095F5EBE04D59409DFCE91FFCEBF7AF3F536E3B@EXMBX05.netplexity.local> <2095F5EBE04D59409DFCE91FFCEBF7AF3F536EBE@EXMBX05.netplexity.local> Date: Fri, 18 Oct 2013 10:52:14 +0200 Message-ID: Subject: Re: Installer changes to go with 4.11? From: Erik de Bruin To: "dev@flex.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org >From [1]: "Our download redirection can handle downloads via scripts, this is done via 302 redirects, please ensure that the download system you are using can follow those redirects, and also make sure that it is not sending a User Agent designed to look like a browser's User Agent (if the User Agent makes the download appear to come from a browser, we will send the "Your download will begin..." page instead of just serving the file)." Now, it seems URLLoader sends a request with the User Agent "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/3.8", which I gather is being interpreted as being from a browser... Any way to change the User Agent on URLLoader or do we have a different method to download files with AIR that doesn't have this behaviour? EdB 1: http://sourceforge.net/apps/trac/sourceforge/ticket/13094 On Fri, Oct 18, 2013 at 10:30 AM, Erik de Bruin wrote: > Funny thing is these URLs succeed when used with the ant 'get' task. I > recently put the one I posted before in 'downloads.xml' to fix an > issue with the previous URL and it has been working fine since... > > EdB > > > > On Fri, Oct 18, 2013 at 10:25 AM, Maurice Amsellem > wrote: >>>The AIR app will actually follow the redirect. But it looks like on the= first hit they are setting a cookie and looking for the cookie before down= loading the >real file. If not, they simply redirect to the downloads page= for a five second wait. And they do it because they want to show ads appa= rently [1] >> >> You are right. >> >> So I disabled cookies and javascript , erased all my cookies and histor= y in chrome, and run one of the URLs, and the download was successful. >> I inspected the OSMF.swc request, it has no cookies. >> >> So I suspect it has something to do with the ;ts=3D1382081780 that is in= the URL. >> That's obviously a timestamp in 100th of seconds. >> So maybe the server is doing some check or something on this value, and = fails if does not math an expected range, >> So that people cannot use an old link to download. >> >> Or probably not, I don't know... >> >> Maurice >> >> >> -----Message d'origine----- >> De : omuppi1@gmail.com [mailto:omuppi1@gmail.com] De la part de OmPrakas= h Muppirala >> Envoy=E9 : vendredi 18 octobre 2013 09:49 >> =C0 : dev@flex.apache.org >> Objet : Re: Installer changes to go with 4.11? >> >> On Fri, Oct 18, 2013 at 12:40 AM, Maurice Amsellem < maurice.amsellem@sy= star.com> wrote: >> >>> Hi, maybe that's obvious , as I am not an HTTP expert at all, >>> >>> but the HTML content returned has a meta http-equiv "refresh", that >>> reloads the pages 5 seconds later with the mirror URL (see below) >>> >>> So it's not doing redirect. >>> >>> Maybe we could parse the content and grab that URL, then send another >>> download? >>> >>> WDYT ? >>> >>> >>> >> I did try exactly that. But the meta redirect url first goes to the sou= rceforge.net page before it gets redirected again. The AIR app will actual= ly follow the redirect. But it looks like on the first hit they are settin= g a cookie and looking for the cookie before downloading the real file. If= not, they simply redirect to the downloads page for a five second wait. A= nd they do it because they want to show ads apparently [1] >> >> [1] http://sourceforge.net/apps/trac/sourceforge/ticket/23335 >> >> >> >>> >> http://downloads.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Relea >>> se%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20release%2 >>> 0notes%29/OSMF.swc?r=3Dapp%3A%2FFlexAIRsandbox.swf&ts=3D1382081780&= amp >>> ;use_mirror=3Dfreefr >>> "> >>> >>> -----Message d'origine----- >>> De : omuppi1@gmail.com [mailto:omuppi1@gmail.com] De la part de >>> OmPrakash Muppirala Envoy=E9 : vendredi 18 octobre 2013 09:31 =C0 : >>> dev@flex.apache.org Objet : Re: Installer changes to go with 4.11? >>> >>> You are probably correct, but every 'direct link' I tried seems to >>> redirect to the same page which redirects to the actual mirror. In >>> fact the link I am using was a 'direct link' to a mirror site. >>> >>> I am not sure if the downloads.xml link is correct either. >>> >>> Thanks, >>> Om >>> >>> >>> On Fri, Oct 18, 2013 at 12:19 AM, Alex Harui wrote: >>> >>> > OK, will look tomorrow. I thought this kind of URL always returns >>> > an HTML page with a separate link to the mirror's url. I think in >>> > some of our scripts I bake in some mirror's URL, which probably >>> > isn't the "best" thing in the world to do, but seems to work. >>> > >>> > -Alex >>> > >>> > On 10/17/13 11:52 PM, "OmPrakash Muppirala" >>> wrote: >>> > >>> > >Sure. Here it is: >>> > > >>> > >Notice that in the handleDownloadSuccess method, the file turns out >>> > >to be an html page. >>> > > >>> > > >> > >xmlns:fx=3D"http://ns.adobe.com/mxml/2009" >>> > > xmlns:s=3D"library://ns.adobe.com/flex/spark" >>> > > xmlns:mx=3D"library://ns.adobe.com/flex/mx"> >>> > > >>> > > >> > > >>> > > protected function handleDownloadBtnClick():void >>> > > { >>> > > download(" >>> > > >>> > http://switch.dl.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Rel >>> > ea >>> > se%2 >>> > >0%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20release%20 >>> > >no >>> > >tes%2 >>> > >9/OSMF.swc >>> > >", >>> > > handleDownloadSuccess,handleDownloadError); >>> > > } >>> > > >>> > > private function download(url:String, >>> > >handlerFunction:Function, errorFunction:Function =3D null):void { >>> > > var loader:URLLoader =3D new URLLoader(); >>> > > var req:URLRequest =3D new URLRequest(url); >>> > > //Wait for 5 minutes before aborting download attemp= t. >>> > >Adobe download sites as well as some Apache mirrors are extremely sl= ow. >>> > > req.idleTimeout =3D 300000; >>> > > >>> > > loader.dataFormat =3D URLLoaderDataFormat.BINARY; >>> > > loader.addEventListener(Event.COMPLETE, >>> > >handlerFunction, false, 0, true); >>> > > >>> > > if (errorFunction !=3D null) { >>> > > loader.addEventListener(ErrorEvent.ERROR, >>> > >errorFunction, false, 0, true); >>> > > loader.addEventListener(IOErrorEvent.IO_ERROR, >>> > >errorFunction, false, 0, true); >>> > > } >>> > > >>> > > loader.load(req); >>> > > } >>> > > >>> > > protected function handleDownloadSuccess(event:Event):vo= id >>> > > { >>> > > var data:ByteArray =3D event.target.data >>> > > var str:String =3D data.readUTFBytes(data.length); >>> > > } >>> > > >>> > > protected function handleDownloadError(event:Event):void >>> > > { >>> > > trace(); >>> > > } >>> > > >>> > > >>> > > ]]> >>> > > >>> > > >> > >label=3D"Download OSMF swc" click=3D"handleDownloadBtnClick()" /> >>> > > >>> > > >>> > > >>> > > >>> > >On Thu, Oct 17, 2013 at 10:30 PM, Alex Harui wrot= e: >>> > > >>> > >> Can you carve out a 10-line MXML file that tests this download >>> > >>capability and post it in this thread? It would make it easier >>> > >>for folks to play around with potential solutions. >>> > >> >>> > >> -Alex >>> > >> >>> > >> On 10/17/13 4:31 PM, "OmPrakash Muppirala" >>> > wrote: >>> > >> >>> > >> >Okay, I give up. There is absolutely no way to download the >>> > >> >osmf.swc >>> > >>2.0 >>> > >> >file from sourceforge from the Installer. If anyone can take a >>> > >> >look, >>> > >>that >>> > >> >would be great. If not, I think we should just instruct folks >>> > >> >on how >>> > >>to >>> > >> >replace it manually. >>> > >> > >>> > >> >Thoughts? >>> > >> > >>> > >> >Thanks, >>> > >> >Om >>> > >> > >>> > >> > >>> > >> >On Thu, Oct 17, 2013 at 3:04 PM, OmPrakash Muppirala >>> > >> >wrote: >>> > >> > >>> > >> >> Just to confirm, osmf.swf should really be named >>> > >> >> osmf__.swf, right? >>> > >> >> >>> > >> >> Thanks, >>> > >> >> Om >>> > >> >> >>> > >> >> >>> > >> >> On Thu, Oct 17, 2013 at 11:54 AM, OmPrakash Muppirala < >>> > >> >> bigosmallm@gmail.com> wrote: >>> > >> >> >>> > >> >>> On Thu, Oct 17, 2013 at 11:50 AM, Maurice Amsellem < >>> > >> >>> maurice.amsellem@systar.com> wrote: >>> > >> >>> >>> > >> >>>> I have tested the download from France. >>> > >> >>>> It's almost instantaneous on a regular ADSL connection via >>> > >> >>>>wifi, which is not surprising, given the small size of the >>> > >> >>>>file. >>> > >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> >>> It is, for me as well. >>> > >> >>> >>> > >> >>> >>> > >> >>>> Where is this mirror located? >>> > >> >>>> >>> > >> >>>> >>> > >> >>> Looks like it is in Zurich, Switzerland. >>> > >> >>> >>> > >> >>> >>> > >> >>> >>> > >> >>>> Maurice >>> > >> >>>> >>> > >> >>>> -----Message d'origine----- >>> > >> >>>> De : omuppi1@gmail.com [mailto:omuppi1@gmail.com] De la part >>> > >> >>>> de OmPrakash Muppirala Envoy=E9 : jeudi 17 octobre 2013 20:15 >>> > >> >>>> =C0 >>> > >> >>>> : dev@flex.apache.org Objet : Re: Installer changes to go >>> > >> >>>> with 4.11? >>> > >> >>>> >>> > >> >>>> The most straightforward way to solve this problem seems to >>> > >> >>>>be >>> > >> >>>>- grabbing the osmf.swc from a single mirror directly like >>> > >> >>>>this [1] Here is a short documentation on sourceforge's >>> > >> >>>>mirroring system. Any >>> > >>concerns? >>> > >> >>>> Any alternative ideas? >>> > >> >>>> >>> > >> >>>> Thanks, >>> > >> >>>> Om >>> > >> >>>> >>> > >> >>>> [1] >>> > >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> http://switch.dl.sourceforge.net/project/osmf.adobe/OSMF%202.0%20 >>> > >> Re >>> > >> leas >>> > >> >>> > >>>>>>e%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20re >>> > >>>>>>le >>> > >>>>>>ase%2 >>> > >>>>>>0n >>> > >> >>>>otes%29/OSMF.swc >>> > >> >>>> >>> > >> >>>> [2] >>> > >> >>>> http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors >>> > >> >>>> >>> > >> >>>> >>> > >> >>>> On Thu, Oct 17, 2013 at 10:32 AM, OmPrakash Muppirala >>> > >> >>>> wrote: >>> > >> >>>> >>> > >> >>>> > The problem with this download page is that it does a 307 >>> > >>redirect >>> > >> >>>>to >>> > >> >>>> > the actual file. Flex/AIR does not seem to follow the >>> > >> >>>> > redirect, >>> > >> >>>>even >>> > >> >>>> > though I set URLRequest.followRedirects =3D true. >>> > >> >>>> > >>> > >> >>>> > Alex/others, do you know of any other location to download >>> > >> >>>> > the >>> > >> >>>>latest >>> > >> >>>> > osmf.swc file. We are getting the older version from here >>> > >> >>>> > [1] >>> > >> >>>> > >>> > >> >>>> > Thanks, >>> > >> >>>> > Om >>> > >> >>>> > >>> > >> >>>> > [1] >>> > >> >>>> > >>> > >> >>> > >>>>>> >>> > http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/fra >>> > m >>> > >>>>>>e >>> > >> >>>> > works/libs/ >>> > >> >>>> > >>> > >> >>>> > >>> > >> >>>> > On Thu, Oct 17, 2013 at 3:32 AM, Erik de Bruin >>> > >> >>> > >> >>>> wrote: >>> > >> >>>> > >>> > >> >>>> >> Om, >>> > >> >>>> >> >>> > >> >>>> >> Instead of: >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>> > >>>>>> >>> > http://sourceforge.net/projects/osmf.adobe/files/OSMF%202.0%20Releas >>> > e >>> > >> >>>> >> >>> > >> >>> > >>>>>>%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20rel >>> > >>>>>>ea >>> > >>>>>>se%20 >>> > >> >>>> >> >>> > >> >>> > >>>>>>notes%29/OSMF.swc/download?use_mirror=3Dhivelocity&r=3D&use_mir= ror >>> > >>>>>>=3Dh >>> > >>>>>>ivelo >>> > >> >>>> >> city >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>> > >>>>>> >>> > http://sourceforge.net/projects/osmf.adobe/files/OSMF%202.0%20Releas >>> > e >>> > >> >>>> >> >>> > >> >>> > >>>>>>%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20rel >>> > >>>>>>ea >>> > >>>>>>se%20 >>> > >> >>>> >> notes%29/OSMF.swc/download >>> > >> >>>> >> >>> > >> >>>> >> You might consider using: >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>> > >>>>>> >>> > http://downloads.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Rel >>> > e >>> > >> >>>> >> >>> > >> >>> > >>>>>>ase%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20 >>> > >>>>>>re >>> > >>>>>>lease >>> > >> >>>> >> >>> > >> >>> > >>>>>>%20notes%29/OSMF.swc?r=3D&ts=3D1381906346&use_mirror=3D= optim >>> > >>>>>>at >>> > >>>>>>e>> > >> >>>> >> >>> > >> >>> > >>>>>>p:// >>> > downloads.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Release >>> > >> >>>> >> >>> > >> >>> > >>>>>>%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20rel >>> > >>>>>>ea >>> > >>>>>>se%20 >>> > >> >>>> >> notes%29/OSMF.swc?r=3D&ts=3D1381906346&use_mirror=3Doptima= te> >>> > >> >>>> >> >>> > >> >>>> >> HTH, >>> > >> >>>> >> >>> > >> >>>> >> EdB >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> On Thu, Oct 17, 2013 at 12:06 PM, OmPrakash Muppirala >>> > >> >>>> >> wrote: >>> > >> >>>> >> > I have checked in all the fixes to support OSMF 2.0 and >>> > >>OSMF.swf >>> > >> >>>> RSL. >>> > >> >>>> >> > There seems to be a problem with the OSMF.swc 2.0 url. >>> > >> >>>> >> > Can >>> > >> >>>>someone >>> > >> >>>> >> take a >>> > >> >>>> >> > look? >>> > >> >>>> >> > >>> > >> >>>> >> > Its 3AM here in the bay area. I am calling it a night. >>> > >> >>>> >> > >>> > >> >>>> >> > Can someone take care of putting up the RC1 (windows, >>> > >> >>>> >> > mac and >>> > >> >>>>linux >>> > >> >>>> >> > versions) of Installer 2.7.0? >>> > >> >>>> >> > >>> > >> >>>> >> > If not, I will take it up in the morning. >>> > >> >>>> >> > >>> > >> >>>> >> > Thanks, >>> > >> >>>> >> > Om >>> > >> >>>> >> > >>> > >> >>>> >> > >>> > >> >>>> >> > On Wed, Oct 16, 2013 at 9:40 PM, OmPrakash Muppirala >>> > >> >>>> >> > wrote: >>> > >> >>>> >> > >>> > >> >>>> >> >> >>> > >> >>>> >> >> On Oct 16, 2013 8:58 PM, "Justin Mclean" >>> > >> >>>> >> >> >>> > >> >>>> >> wrote: >>> > >> >>>> >> >> > >>> > >> >>>> >> >> > Hi, >>> > >> >>>> >> >> > >>> > >> >>>> >> >> > > Should the installer learn how to pull and rename >>> > >> >>>> >> >> > > the >>> > >>SWF >>> > >> >>>> >> >> > > from >>> > >> >>>> >> the SWC >>> > >> >>>> >> >> > That would fix the current issue with the installer. >>> > >> >>>> >> >> >>> > >> >>>> >> >> I am on it. >>> > >> >>>> >> >> >>> > >> >>>> >> >> Om >>> > >> >>>> >> >> >>> > >> >>>> >> >> > >>> > >> >>>> >> >> > BTW not too many people are likely to run into this >>> > >> >>>> >> >> > and >>> > >> >>>>there's >>> > >> >>>> >> >> > an >>> > >> >>>> >> easy >>> > >> >>>> >> >> work around eg put the file in the right place yourself= . >>> > >> >>>> >> >> > >>> > >> >>>> >> >> > > or should the build script do that and leave the >>> > >>OSMF.SWF in >>> > >> >>>> >> >> > > the >>> > >> >>>> >> RSLs >>> > >> >>>> >> >> folder with the rest of >>> > >> >>>> >> >> > > the SDK RSL SWFs? >>> > >> >>>> >> >> > License wise we can't distribute the binary release >>> > >> >>>> >> >> > with >>> > >>osmf >>> > >> >>>>in >>> > >> >>>> >> >> > it >>> > >> >>>> >> so >>> > >> >>>> >> >> that complicates things a little. >>> > >> >>>> >> >> > >>> > >> >>>> >> >> > Thanks, >>> > >> >>>> >> >> > Justin >>> > >> >>>> >> >> >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> >>> > >> >>>> >> -- >>> > >> >>>> >> Ix Multimedia Software >>> > >> >>>> >> >>> > >> >>>> >> Jan Luykenstraat 27 >>> > >> >>>> >> 3521 VB Utrecht >>> > >> >>>> >> >>> > >> >>>> >> T. 06-51952295 >>> > >> >>>> >> I. www.ixsoftware.n >>> > >> >>>> >> >>> > >> >>>> > >>> > >> >>>> > >>> > >> >>>> >>> > >> >>> >>> > >> >>> >>> > >> >> >>> > >> >>> > >> >>> > >>> > >>> > > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl --=20 Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl