Re: [dl-ticket-service] Re: Thunderbird 32

2014-09-30 Thread Yuri D'Elia
On 09/23/2014 10:37 AM, Michael Bunk wrote:
>> I have found the problem,
>> it is the paramater magic_quotes_gpc=On which differs from you indication.
>> Unfortunately another virtual web site on the same web server, Apache/2.2.16
>> (Debian), needs  the value "On" .

Which PHP version is this?

>> For some reasone newticket post command works but newgrant fails with such a
>> setting.

With PHP 5.6 this setting is not even available anymore, so I'm even
reluctant to look into it. Software relying on magic_quotes_gpc is
broken by design.

>> I tried to override the parameter with the option
>> php_flag magic_quotes_gpc Off within .htaccess  
>> and/or php.ini in the /dlticksvc/ directory but it didn't work
>> Have you any hints in how to achieve this overriding?

>From the PHP manual:

| The magic_quotes_gpc directive may only be disabled at the system
| level, and not at runtime. In otherwords, use of ini_set() is not an
| option.

> Try to set the flag in the apache config directly instead of .htaccess:
> 
> http://stackoverflow.com/a/11539059/2725226

which with mod_php this would have the same limitation.

With suPHP (http://www.suphp.org/) you can have a separate environment
(including a different php.ini), which would allow you to run both
side-by-side.

Of course, this is for old PHP setups.

With a more recent PHP version you could directly use php-fpm to the
same extent.

As a last resort, you can run DL with a different apache process, and
then use a reverse proxy from the main server to make it invisible. It's
a heavy-handed approach, but it *will* work.





Re: [dl-ticket-service] Re: Thunderbird 32

2014-09-23 Thread Michael Bunk
> I have found the problem,
> it is the paramater magic_quotes_gpc=On which differs from you indication.
> Unfortunately another virtual web site on the same web server, Apache/2.2.16
> (Debian), needs  the value "On" .
> For some reasone newticket post command works but newgrant fails with such a
> setting.
> I tried to override the parameter with the option
> php_flag magic_quotes_gpc Off within .htaccess  
> and/or php.ini in the /dlticksvc/ directory but it didn't work
> Have you any hints in how to achieve this overriding?

Try to set the flag in the apache config directly instead of .htaccess:

http://stackoverflow.com/a/11539059/2725226

Regards,
 Michael




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [dl-ticket-service] Re: Thunderbird 32

2014-09-23 Thread Michael Bunk
> I have found the problem,
> it is the paramater magic_quotes_gpc=On which differs from you indication.
> Unfortunately another virtual web site on the same web server, Apache/2.2.16
> (Debian), needs  the value "On" .
> For some reasone newticket post command works but newgrant fails with such a
> setting.
> I tried to override the parameter with the option
> php_flag magic_quotes_gpc Off within .htaccess  
> and/or php.ini in the /dlticksvc/ directory but it didn't work
> Have you any hints in how to achieve this overriding?

Try to set the flag in the apache config directly instead of .htaccess:

http://stackoverflow.com/a/11539059/2725226

Regards,
 Michael




smime.p7s
Description: S/MIME Cryptographic Signature


[dl-ticket-service] Re: Thunderbird 32

2014-09-22 Thread Luca Casavola
Yuri D'Elia  writes:

> 
> On 09/19/2014 03:18 PM, Luca Casavola wrote:
> > I have installed on Thunderbird  31.1.1 ( not 32, I was wrong ) .
> > After setting up the DL account with my internal server I was able to
produce 
> > the link from thunderbid but I got an erro when I tried to produce a grant
> > On thunderbird I got the message on the status bar:
> > Cannot generate a new grant
> > On the console error the  are no errors.
> > On the server side i got the info ( from webserver 's error.log )
> >  PHP Notice:  date_default_timezone_set() [ > href='function.date-default-timezone-set'>function.date-default-timezone-
> > set]:
> > Timezone ID '' is invalid in 
> > ...
> > but it should not be related with the issue since I got it for each dl
request.
> > Instead , from webserver 's access.log I got :
> >  "POST /dlticksvc/rest.php/newgrant HTTP/1.1" 400 204 "-"
> > "thunderbird-filelink-dl@.../0.13 Lightning/3.3"
> > I presume there is some error on the POST request.
> > How can investigate on it.
> 
> I assume here generating a grant from the web interface works.
> 
> Since you seem knowledgeable, can you please try if:
> 
>   ./dl/client/dl-cli.py -g random@...
> 
> works from the command line?
> 
> Also, it would be helpful to know which configuration do you have on
> your server (apache, php-fpm, mod_php, etc) and which configuration
> example did you follow from the README to set it up.
> 
> 
I have found the problem,
it is the paramater magic_quotes_gpc=On which differs from you indication.
Unfortunately another virtual web site on the same web server, Apache/2.2.16
(Debian), needs  the value "On" .
For some reasone newticket post command works but newgrant fails with such a
setting.
I tried to override the parameter with the option
php_flag magic_quotes_gpc Off within .htaccess  
and/or php.ini in the /dlticksvc/ directory but it didn't work
Have you any hints in how to achieve this overriding?
Rgds.
Luca





Re: [dl-ticket-service] Re: Thunderbird 32

2014-09-20 Thread Yuri D'Elia
On 09/19/2014 03:18 PM, Luca Casavola wrote:
> I have installed on Thunderbird  31.1.1 ( not 32, I was wrong ) .
> After setting up the DL account with my internal server I was able to produce 
> the link from thunderbid but I got an erro when I tried to produce a grant
> On thunderbird I got the message on the status bar:
> Cannot generate a new grant
> On the console error the  are no errors.
> On the server side i got the info ( from webserver 's error.log )
>  PHP Notice:  date_default_timezone_set() [ href='function.date-default-timezone-set'>function.date-default-timezone-
> set]:
> Timezone ID '' is invalid in 
> ...
> but it should not be related with the issue since I got it for each dl 
> request.
> Instead , from webserver 's access.log I got :
>  "POST /dlticksvc/rest.php/newgrant HTTP/1.1" 400 204 "-"
> "thunderbird-filelink...@thregr.org/0.13 Lightning/3.3"
> I presume there is some error on the POST request.
> How can investigate on it.

I assume here generating a grant from the web interface works.

Since you seem knowledgeable, can you please try if:

  ./dl/client/dl-cli.py -g ran...@example.com

works from the command line?

Also, it would be helpful to know which configuration do you have on
your server (apache, php-fpm, mod_php, etc) and which configuration
example did you follow from the README to set it up.





[dl-ticket-service] Re: Thunderbird 32

2014-09-19 Thread Luca Casavola
Yuri D'Elia  writes:

> 
> On 09/19/2014 09:59 AM, Luca Casavola wrote:
> > Hi all,
> > is availabale a workaround to install Dl 0.13 add on thunderbird 32
> > or do we need wait for the next coming release?
> 
> I updated the minimum version on the mozilla addon website to 32.*.
> 
> [On a related note, I truly hate these meaningless version numbers that
> Mozilla has started to use]
> 
> 

Thank you Yuri,
I have installed on Thunderbird  31.1.1 ( not 32, I was wrong ) .
After setting up the DL account with my internal server I was able to produce 
the link from thunderbid but I got an erro when I tried to produce a grant
On thunderbird I got the message on the status bar:
Cannot generate a new grant
On the console error the  are no errors.
On the server side i got the info ( from webserver 's error.log )
 PHP Notice:  date_default_timezone_set() [function.date-default-timezone-
set]:
Timezone ID '' is invalid in 
...
but it should not be related with the issue since I got it for each dl request.
Instead , from webserver 's access.log I got :
 "POST /dlticksvc/rest.php/newgrant HTTP/1.1" 400 204 "-"
"thunderbird-filelink...@thregr.org/0.13 Lightning/3.3"
I presume there is some error on the POST request.
How can investigate on it.
Regards
Luca