You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Igor Galić <i....@brainsware.org> on 2012/06/06 11:17:43 UTC
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
----- Original Message -----
> Sorry, but the project script does not currently support redirected
> URLs or HTTPS (to which this URL redirects).
>
> Is there a copy of the DOAP somehere else which is accessible via
> HTTP ?
Is there any way we can fix this code to use something like LWP?
It's 2012. Everything is HTTP. All HTTP is SSL.
oh well, or maybe it's supposed to be.
Anyway, can we get there too?
> ---------- Forwarded message ----------
> From: Cron Daemon <ap...@apache.org>
> Date: 5 June 2012 22:30
> Subject: Cron <ap...@minotaur> /x1/home/apsite/wrkdir/bin/build.sh
> To: site-dev@apache.org
>
>
> projects_21.log:Failed to get
> 'http://git-wip-us.apache.org/repos/asf?p=trafficserver.git;a=blob_plain;f=doc/doap.rdf;hb=HEAD'
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by sebb <se...@gmail.com>.
On 6 June 2012 22:04, Igor Galić <i....@brainsware.org> wrote:
>
>
> ----- Original Message -----
>> On 6 June 2012 20:47, Igor Galić <i....@brainsware.org> wrote:
>> >
>> >> >> > Is there any way we can fix this code to use something like
>> >> >> > LWP?
>> >> >>
>> >> >> In theory yes, but someone has to do the work.
>> >> >
>> >> > Can you tell me where that script lives?
>> >>
>> >> https://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/scripts/projects.pl
>> >
>> >
>> > I think I'm mostly done.
>> >
>> > This is completely untested:
>> >
>> > http://sprunge.us/CPNh
>>
>> AFAICT from a quick scan of the code, it just won't work.
>> The GET parameter is wrong, but easily fixed.
>>
>> The Get procedure expects a socket as first parameter; that cannot
>> just be dropped.
>>
>> Also, the rest of the code reuses the socket if possible to reduce
>> connection overhead.
>
> Here's a clean-up that fixes syntax errors and typos, it's only
> "tested" with perl -c. All calls to socket* in and around Get()
> have been removed.
>
> http://sprunge.us/HWYH
Again, it almost certainly won't work.
For example:
- $failed++, next unless $socket;
- $rv = Get($socket, $d, $host, $tried);
+ $failed++, next;
+ $rv = Get($d, $host, $tried); # <<< Can never reach this line
> i
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
> GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
>
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----
> On 6 June 2012 20:47, Igor Galić <i....@brainsware.org> wrote:
> >
> >> >> > Is there any way we can fix this code to use something like
> >> >> > LWP?
> >> >>
> >> >> In theory yes, but someone has to do the work.
> >> >
> >> > Can you tell me where that script lives?
> >>
> >> https://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/scripts/projects.pl
> >
> >
> > I think I'm mostly done.
> >
> > This is completely untested:
> >
> > http://sprunge.us/CPNh
>
> AFAICT from a quick scan of the code, it just won't work.
> The GET parameter is wrong, but easily fixed.
>
> The Get procedure expects a socket as first parameter; that cannot
> just be dropped.
>
> Also, the rest of the code reuses the socket if possible to reduce
> connection overhead.
Here's a clean-up that fixes syntax errors and typos, it's only
"tested" with perl -c. All calls to socket* in and around Get()
have been removed.
http://sprunge.us/HWYH
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by sebb <se...@gmail.com>.
On 6 June 2012 20:47, Igor Galić <i....@brainsware.org> wrote:
>
>> >> > Is there any way we can fix this code to use something like LWP?
>> >>
>> >> In theory yes, but someone has to do the work.
>> >
>> > Can you tell me where that script lives?
>>
>> https://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/scripts/projects.pl
>
>
> I think I'm mostly done.
>
> This is completely untested:
>
> http://sprunge.us/CPNh
AFAICT from a quick scan of the code, it just won't work.
The GET parameter is wrong, but easily fixed.
The Get procedure expects a socket as first parameter; that cannot
just be dropped.
Also, the rest of the code reuses the socket if possible to reduce
connection overhead.
>
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
> GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
>
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by Igor Galić <i....@brainsware.org>.
> >> > Is there any way we can fix this code to use something like LWP?
> >>
> >> In theory yes, but someone has to do the work.
> >
> > Can you tell me where that script lives?
>
> https://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/scripts/projects.pl
I think I'm mostly done.
This is completely untested:
http://sprunge.us/CPNh
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by sebb <se...@gmail.com>.
On 6 June 2012 20:16, Igor Galić <i....@brainsware.org> wrote:
>
>
> ----- Original Message -----
>> On 6 June 2012 10:17, Igor Galić <i....@brainsware.org> wrote:
>> >
>> >
>> > ----- Original Message -----
>> >> Sorry, but the project script does not currently support
>> >> redirected
>> >> URLs or HTTPS (to which this URL redirects).
>> >>
>> >> Is there a copy of the DOAP somehere else which is accessible via
>> >> HTTP ?
>> >
>> >
>> > Is there any way we can fix this code to use something like LWP?
>>
>> In theory yes, but someone has to do the work.
>
> Can you tell me where that script lives?
https://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/scripts/projects.pl
>> In the meantime, if you want your FOAF to be used, it will have to be
>> available via HTTP.
>
> Meanwhile, or alternatively, zwoop will put the doap file in his home
> on mino.
>
> i
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
> GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
>
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----
> On 6 June 2012 10:17, Igor Galić <i....@brainsware.org> wrote:
> >
> >
> > ----- Original Message -----
> >> Sorry, but the project script does not currently support
> >> redirected
> >> URLs or HTTPS (to which this URL redirects).
> >>
> >> Is there a copy of the DOAP somehere else which is accessible via
> >> HTTP ?
> >
> >
> > Is there any way we can fix this code to use something like LWP?
>
> In theory yes, but someone has to do the work.
Can you tell me where that script lives?
> In the meantime, if you want your FOAF to be used, it will have to be
> available via HTTP.
Meanwhile, or alternatively, zwoop will put the doap file in his home
on mino.
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
Re: Cron /x1/home/apsite/wrkdir/bin/build.sh
Posted by sebb <se...@gmail.com>.
On 6 June 2012 10:17, Igor Galić <i....@brainsware.org> wrote:
>
>
> ----- Original Message -----
>> Sorry, but the project script does not currently support redirected
>> URLs or HTTPS (to which this URL redirects).
>>
>> Is there a copy of the DOAP somehere else which is accessible via
>> HTTP ?
>
>
> Is there any way we can fix this code to use something like LWP?
In theory yes, but someone has to do the work.
In the meantime, if you want your FOAF to be used, it will have to be
available via HTTP.
> It's 2012. Everything is HTTP. All HTTP is SSL.
> oh well, or maybe it's supposed to be.
> Anyway, can we get there too?
>
>> ---------- Forwarded message ----------
>> From: Cron Daemon <ap...@apache.org>
>> Date: 5 June 2012 22:30
>> Subject: Cron <ap...@minotaur> /x1/home/apsite/wrkdir/bin/build.sh
>> To: site-dev@apache.org
>>
>>
>> projects_21.log:Failed to get
>> 'http://git-wip-us.apache.org/repos/asf?p=trafficserver.git;a=blob_plain;f=doc/doap.rdf;hb=HEAD'
>
> i
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
> GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
>