Re: [Catalyst] Catalyst::ActionRole::RequireSSL under development server
On Tue, Apr 17, 2012 at 4:11 AM, Rippl, Steve rip...@woodlandschools.orgwrote: We're just upgrading to Catalyst 5.9 from 5.8, and therefore switching from the old Catalyst::Plugin::RequireSSL to Catalyst::ActionRole::RequireSSL. The old module would detect when is was running under the standalone server and so was fine under development. I could be wrong, but I think you'll find both of those modules are testing for Catalyst::Engine::HTTP which is not applicable since the move to PSGI. (Possibly depending on how you're running things). Catalyst::ActionRole::RequireSSL doesn't seem to play nicely under the development server when hitting an action requiring SSL. Am I doing something wrong? Are there some settings in the config somewhere to disable that under debug or something? I want to avoid having different versions of the Controllers themselves between dev and production. Thanks, Steve -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::ActionRole::RequireSSL under development server
On Wed, Apr 18, 2012 at 6:00 AM, Jason Galea li...@eightdegrees.com.auwrote: On Tue, Apr 17, 2012 at 4:11 AM, Rippl, Steve rip...@woodlandschools.orgwrote: We're just upgrading to Catalyst 5.9 from 5.8, and therefore switching from the old Catalyst::Plugin::RequireSSL to Catalyst::ActionRole::RequireSSL. The old module would detect when is was running under the standalone server and so was fine under development. I could be wrong, but I think you'll find both of those modules are testing for Catalyst::Engine::HTTP which is not applicable since the move to PSGI. (Possibly depending on how you're running things). I think you're absolutely right! I found this... $c-config-{require_ssl}-{disabled} = $c-engine-isa(Catalyst::Engine::HTTP) ? 1 : 0; Anyone know what I should be testing for now? When I query $c-engine_class I get Catalyst::Engine whether I'm running under the development server or fastcgi. Thanks, Steve -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::ActionRole::RequireSSL under development server
Good morning, On 16/04/12 at 11:11 AM -0700, Rippl, Steve rip...@woodlandschools.org wrote: We're just upgrading to Catalyst 5.9 from 5.8, and therefore switching from the old Catalyst::Plugin::RequireSSL to Catalyst::ActionRole::RequireSSL. The old module would detect when is was running under the standalone server and so was fine under development. Catalyst::ActionRole::RequireSSL doesn't seem to play nicely under the development server when hitting an action requiring SSL. Am I doing something wrong? Are there some settings in the config somewhere to disable that under debug or something? I want to avoid having different versions of the Controllers themselves between dev and production. I could be way off here, but it might be a conflict with other modules. I don't recall specific reason why, but I'm in process of creating a version of HTML::FormFu which works as a role rather than extended in controller base class. It was conflicting with another ActionRole (can't recall which one right now). Charlie -- Ꮚ Charlie Garrison ♊ garri...@zeta.org.au O ascii ribbon campaign - stop html mail - www.asciiribbon.org 〠 http://www.ietf.org/rfc/rfc1855.txt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::ActionRole::RequireSSL under development server
On Mon, Apr 16, 2012 at 4:58 PM, Charlie Garrison garri...@zeta.org.auwrote: Good morning, On 16/04/12 at 11:11 AM -0700, Rippl, Steve rip...@woodlandschools.org wrote: We're just upgrading to Catalyst 5.9 from 5.8, and therefore switching from the old Catalyst::Plugin::RequireSSL to Catalyst::ActionRole::** RequireSSL. The old module would detect when is was running under the standalone server and so was fine under development. Catalyst::ActionRole::** RequireSSL doesn't seem to play nicely under the development server when hitting an action requiring SSL. Am I doing something wrong? Are there some settings in the config somewhere to disable that under debug or something? I want to avoid having different versions of the Controllers themselves between dev and production. I could be way off here, but it might be a conflict with other modules. I don't recall specific reason why, but I'm in process of creating a version of HTML::FormFu which works as a role rather than extended in controller base class. It was conflicting with another ActionRole (can't recall which one right now). Charlie Thanks for the response, but it does seem to work fine running under fastcgi, it's only under the development server that it seems to break and I'm thinking that's because it's on port 3000 and isn't about to jump to 443 and support SSL? -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/