incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol Frampton <cfram...@adobe.com>
Subject Re: updating ApacheFlexSDK URL in Om's installer
Date Fri, 27 Jul 2012 19:06:00 GMT


On 7/27/12 2 :53PM, "Daniel Shahaf" <d.s@daniel.shahaf.name> wrote:

>Josh Thompson wrote on Fri, Jul 27, 2012 at 14:01:42 -0400:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> I slightly tweaked the mirrors.cgi script to be able to have a redirect
>> feature.  I have our download.html file set up so that when a user
>>clicks to 
>> download a file, it sends them back to the download.cgi URL with some
>>GET 
>> variables set specifying the selected mirror and specifying a file to
>>be 
>> downloaded.  Then, the user is redirected to the appropriate URL for
>> downloading the file from the mirror.  You can look at the scripts in
>>the cms 
>> repo:
>> 
>> 
>>https://svn.apache.org/repos/infra/websites/production/vcl/content/mirror
>>s.cgi
>> 
>>https://svn.apache.org/repos/infra/websites/production/vcl/content/downlo
>>ad.cgi
>> 
>>https://svn.apache.org/repos/infra/websites/production/vcl/content/downlo
>>ad.html
>> 
>
>Looks like you forked mirrors.cgi.  Is your functionally generally
>useful?  Should it be merged to the master mirrors.cgi (and thus be
>available to all projects)?
>
>> One thing to note in the mirrors.cgi file - I started playing with the
>>idea of 
>> recording downloads to a log file because I started looking in to this
>>when 
>> the access logs were not available do to a security incident.  Since
>>the 
>> access logs are available now, I saw no need to record things to a
>>separate 
>> log file.  So, that part is commented out.
>> 
>
>In the future please let us know if your CGI's (need to) keep state,
>we'd like to be on top of such uses.
>
>> Josh
>> 
>> On Friday, July 27, 2012 3:08:12 AM Greg Stein wrote:
>> > I read your entire email. Are you suggesting that the app should
>>interpret
>> > a Location: header in a 3xx redirect? If so, then please be less
>>subtle.
>> > 
>> > Second, *is* there such a redirect feature? (just checked; no)
>> > 
>> > Absent clarity when I read your email, I knew that Carol's proposed
>> > solution would work and seemed an entirely reasonable solution.
>> > 
>> > They could certainly write their own CGI to interpret the mirrors
>>list. It
>> > might be "faster" (in a ridiculously moot sort of fashion). But a
>>teeny
>> > invocation script and small template is likely more maintainable for
>>the
>> > project, given arbitrary changes that may occur around the system
>> > underlying closer.cgi/mirrors.cgi.
>> > 
>> > -g
>> > 
>> >  On Jul 27, 2012 2:55 AM, "Daniel Shahaf" <d.s@daniel.shahaf.name>
>>wrote:
>> > > Greg Stein wrote on Thu, Jul 26, 2012 at 17:23:56 -0400:
>> > > > That link works for a web browser to generate a default download
>>page.
>> > > 
>> > > Read the second paragraph I wrote too please.
>> > > 
>> > > > Carol: your solution looks proper for retrieving a simple URL for
>>use
>> > > > within an application (desktop, I presume?)
>> > > > 
>> > > > If you have any problems with the CGI script, please feel free to
>> > > > contact
>> > > > me. I've done a bit of work on it.
>> > > > 
>> > > > Cheers,
>> > > > -g
>> > > > On Jul 26, 2012 12:06 PM, "Daniel Shahaf" <d.s@daniel.shahaf.name>
>> > > 
>> > > wrote:
>> > > > > Try this link:
>>http://www.apache.org/dyn/closer.cgi/incubator/flex/
>> > > > > 
>> > > > > I'm pretty sure there is a query string parameter you can add
>>to make
>> > > 
>> > > it
>> > > 
>> > > > > do a redirect, too, rather than just tell you what the preferred
>> > > 
>> > > mirror is.
>> > > 
>> > > > > Thanks for asking,
>> > > > > 
>> > > > > Daniel
>> > > > > 
>> > > > > Carol Frampton wrote on Thu, Jul 26, 2012 at 08:56:37 -0700:
>> > > > > > {sent on behalf of Erik de Bruin <erik@ixsoftware.nl>
who is a
>> > > 
>> > > member
>> > > 
>> > > > > of flex-dev}
>> > > > > 
>> > > > > > Hi all,
>> > > > > > 
>> > > > > > I'm writing on behalf of the Apache Flex (incubating)
>>community.
>> > > 
>> > > We're
>> > > 
>> > > > > > working on a tool that helps an end-user to download and
>>install our
>> > > > > > binaries to the correct location on their system for use
in
>>an IDE.
>> > > > > > 
>> > > > > > We would like to do this the proper way, which in our
>>understanding
>> > > 
>> > > is
>> > > 
>> > > > > > by using a dynamically assigned download mirror instead
of a
>> > > > > > hard-coded link. I've read all of the documentation I could
>>find and
>> > > > > > I've come up with the following solution:
>> > > > > > 
>> > > > > > 1. create a wrapper around the generic 'mirrors.cgi', as
>>described
>> > > > > > in
>> > > > > 
>> > > > > [1];
>> > > > > 
>> > > > > > 2. create a HTML file containing only the tag: [preferred].
>>We need
>> > > > > > only one mirror URL as this is an automated download process;
>> > > > > > 3. place these two in the root of our project site;
>> > > > > > 4. call the wrapper CGI as a web service from our
>>application, and
>> > > 
>> > > use
>> > > 
>> > > > > > the result for the domain section of the URL.
>> > > > > > 
>> > > > > > My questions:
>> > > > > > - is this a valid solution?
>> > > > > > - is there an 'easier' way to get a single dynamic mirror
URL?
>> > > > > > - what did I miss, what did I forget to ask?
>> > > > > > 
>> > > > > > Thank you very much for your assistance and patience,
>> > > > > > 
>> > > > > > EdB
>> > > > > > 
>> > > > > > [1] http://www.apache.org/dev/release-download-pages.html
>> > > > > > </message>
>> > > > > > 
>> > > > > > EdB
>> - -- 
>> - -------------------------------
>> Josh Thompson
>> VCL Developer
>> North Carolina State University
>> 
>> my GPG/PGP key can be found at pgp.mit.edu
>> 
>> All electronic mail messages in connection with State business which
>> are sent to or received by this account are subject to the NC Public
>> Records Law and may be disclosed to third parties.
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.17 (GNU/Linux)
>> 
>> iEYEARECAAYFAlAS14sACgkQV/LQcNdtPQPDywCeNnqlEC1eCS1sWyruEOVKTWG/
>> U5cAnjFVB05rrWErSQHx+jNmUFagxaTf
>> =0wtB
>> -----END PGP SIGNATURE-----
>> 


Mime
View raw message