[Catalyst] $c->namespace misbehaving

Thomas Zehetbauer thomasz at hostmaster.org
Thu Oct 29 12:38:46 GMT 2009

the url
  Cat::Controller::Devisen->begin :Private
  Cat::Controller::Devisen->crossrates :Local :Args(0)
  Cat::Controller::Devisen->end :ActionClass(RenderView)
leading to

in the template I call $c->uri_for() / $c->namespace():

with Catalyst 5.80007 (my development workstation):
  c.uri_for('details') = 'http://localhost:3000/devisen/details'
  c.namespace() = 'devisen'

with Catalyst 5.7013 (our production servers):
  c.uri_for('details') = 'http://localhost:3000/tt/details'
  c.namespace() = 'tt'

although the documentation of $c->namespace() has not changed, it's return 
value obviously has. I could not find that to be mentioned in the changelog 
either. is there a documented and supported behaviour for this function or 
should I consider it to be unstable and avoid it? if there is a supported 
behaviour: which one and how do I fix the other installation (upgrading is not 
an option).


Thomas Zehetbauer
Muhrengasse 54 / 6 / 8, 1100 Wien
PGP-Key-Id: 0x96FFCB89

More information about the Catalyst mailing list