patch for the perl bindings

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

patch for the perl bindings

oetiker
Evening,

I just spent some quality time with the qooxdoo perl bindings, to
figure why they only work with ff3 when cross-site was enabled and
found that the following patch is necessary:

--- source/perl/Qooxdoo/JSONRPC.pm      2008-09-21 20:07:03.000000000 +0200
+++ /usr/pack/qooxdoo-0.8svn-to/backend/perl/trunk/Qooxdoo/JSONRPC.pm   2008-08-10 16:13:58.000000000 +0200
@@ -105,7 +103,7 @@
         print STDERR "POST Content type is '$content_type'\n"
             if $Qooxdoo::JSONRPC::debug;

-        if ($content_type =~ m{application/json})
+        if ($content_type eq 'application/json')
         {
             $input = $cgi->param('POSTDATA');
         }

Since the accual content type is 'application/json; charset=UTF-8'

I am wondering, is anyone takeing care of the perl bindings ? since
my last patch post to the mailinglist went unanswered.

cheers
tobi

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: patch for the perl bindings

oetiker
Oops ... wrong direction ... apply with -R

cheers
tobi

Today Tobias Oetiker wrote:

> Evening,
>
> I just spent some quality time with the qooxdoo perl bindings, to
> figure why they only work with ff3 when cross-site was enabled and
> found that the following patch is necessary:
>
> --- source/perl/Qooxdoo/JSONRPC.pm      2008-09-21 20:07:03.000000000 +0200
> +++ /usr/pack/qooxdoo-0.8svn-to/backend/perl/trunk/Qooxdoo/JSONRPC.pm   2008-08-10 16:13:58.000000000 +0200
> @@ -105,7 +103,7 @@
>          print STDERR "POST Content type is '$content_type'\n"
>              if $Qooxdoo::JSONRPC::debug;
>
> -        if ($content_type =~ m{application/json})
> +        if ($content_type eq 'application/json')
>          {
>              $input = $cgi->param('POSTDATA');
>          }
>
> Since the accual content type is 'application/json; charset=UTF-8'
>
> I am wondering, is anyone takeing care of the perl bindings ? since
> my last patch post to the mailinglist went unanswered.
>
> cheers
> tobi
>
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: patch for the perl bindings

Derrell Lipman
In reply to this post by oetiker
I'm forwarding this on to Nick Glencross who maintains the Perl backend.

Derrell

On Sun, Sep 21, 2008 at 2:15 PM, Tobias Oetiker <[hidden email]> wrote:
Evening,

I just spent some quality time with the qooxdoo perl bindings, to
figure why they only work with ff3 when cross-site was enabled and
found that the following patch is necessary:

--- source/perl/Qooxdoo/JSONRPC.pm      2008-09-21 20:07:03.000000000 +0200
+++ /usr/pack/qooxdoo-0.8svn-to/backend/perl/trunk/Qooxdoo/JSONRPC.pm   2008-08-10 16:13:58.000000000 +0200
@@ -105,7 +103,7 @@
        print STDERR "POST Content type is '$content_type'\n"
            if $Qooxdoo::JSONRPC::debug;

-        if ($content_type =~ m{application/json})
+        if ($content_type eq 'application/json')
        {
            $input = $cgi->param('POSTDATA');
        }

Since the accual content type is 'application/json; charset=UTF-8'

I am wondering, is anyone takeing care of the perl bindings ? since
my last patch post to the mailinglist went unanswered.

cheers
tobi

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



--
"There is nothing more difficult to plan, more doubtful of success, nor more dangerous to manage than the creation of a new system. For the initiator has the enmity of all who would profit by the preservation of the old system and merely lukewarm defenders in those who would gain by the new one." --Machiavelli, 1513

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: patch for the perl bindings

Nick Glencross
All,

On Sun, Sep 21, 2008 at 8:14 PM, Derrell Lipman <[hidden email]> wrote:
I'm forwarding this on to Nick Glencross who maintains the Perl backend.
 

I give this patch my blessing. Unfortunately I don't believe that I got commit rights sorted out (or did I?), so would someone be kind enough to commit this for me?

Thanks in advance,

Nick


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: patch for the perl bindings

oetiker
Hi Nick,

did you see my previous patch for authentication ? we use it now in
production and it seems to work quite well and it is fully
backward compatible.

cheers
tobi

Today Nick Glencross wrote:

> All,
>
> On Sun, Sep 21, 2008 at 8:14 PM, Derrell Lipman <
> [hidden email]> wrote:
>
> > I'm forwarding this on to Nick Glencross who maintains the Perl backend.
> >
>
>
> I give this patch my blessing. Unfortunately I don't believe that I got
> commit rights sorted out (or did I?), so would someone be kind enough to
> commit this for me?
>
> Thanks in advance,
>
> Nick
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: patch for the perl bindings

Fabian Jakobs
Administrator
In reply to this post by Nick Glencross
Nick Glencross schrieb:

> All,
>
> On Sun, Sep 21, 2008 at 8:14 PM, Derrell Lipman
> <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     I'm forwarding this on to Nick Glencross who maintains the Perl
>     backend.
>
>  
>
> I give this patch my blessing. Unfortunately I don't believe that I
> got commit rights sorted out (or did I?), so would someone be kind
> enough to commit this for me?
>
Hi Nick,

as you probably noticed, we have moved the RPC backends into
qooxdoo-contrib. I can give you commit rights to it - I just need your
sourceforge id.

Best Fabian

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel