[rt-users] Can't locate object method "host"

Kevin Falcone falcone at bestpractical.com
Wed Aug 13 09:24:47 EDT 2014


On Tue, Aug 12, 2014 at 12:32:18PM -0400, Jeff Blaine wrote:
> I keep getting the following errors when using the web UI. Here's one
> case just now where I logged in as root at https://alms2.foo.com/ and
> was then immediately thrown an error:
> 
>     [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
>     [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
> method "host" via package "URI::_foreign" at
> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
> 
> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
> 
> Previously, Kevin Falcone had said:
> 
>     "This is RT trying to issue the redirect after login, what URL did
>     you use to access RT and what was the next parameter."
> 
> I had replied:
> 
>     I'm not sure what you mean by "what was the next parameter".

Look at the code that calls Redirect (which is where your error comes
from).

https://github.com/bestpractical/rt-authen-externalauth/blob/master/html/Elements/DoAuth#L19

What's $next for your user that errors out.

You should also always turn on stacktraces when debugging something
like this.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140813/16d2ea22/attachment.pgp>


More information about the rt-users mailing list