[rt-users] Trouble with NoAuth pages and REST urls for email

Zuckercorn, Barry zuckercorn.barry at gmail.com
Tue Mar 2 15:09:54 EST 2010


Hello,
I am in the process of moving from RT 3.6 to 3.8 and have managed to
get the database migration and upgrade process working smoothly.
We're using fastcgi successfully (which is much faster than our
production system and Mason)
I am however having a hard time getting our old NoAuth pages to work,
which in turn means I am having some problems with email interactions
with RT.
We are using Active Directory to authenticate users which is working
very well and have the following VirtualHost configuration:
// start
<VirtualHost n.n.n.n:n>
    ServerName fqdn.tld
    DocumentRoot "/local/rt/rt-current/share/html"
    ScriptAlias / /local/rt/rt3/bin/mason_handler.fcgi

<Location /NoAuth/images>
SetHandler default
</Location>

<Location /REST/1.0/NoAuth>
        satisfy any
        allow from all
</Location>
<Location /NoAuth>
        satisfy any
        allow from all
</Location>
<Location /NoAuth/images>
        SetHandler default-handler
</Location>
<Location /rt/>
        AddDefaultCharset UTF-8
        SetHandler fastcgi-script
</Location>
// leaving out ssl junk
// end
Trying to do a test email:
/local/rt/rt-current/bin/rt-mailgate: temp file is '/tmp/nWKJoWPqCW'
/local/rt/rt-current/bin/rt-mailgate: connecting to
https://fqdn.tld:n/rt//REST/1.0/NoAuth/mail-gateway
not ok - Could not load a valid user
I also noticed that our old NoAuth pages for things like public ticket
overviews (so non-users of RT can view open tickets for a
building/site) are not being processed by RT any more.
The /NoAuth/ URL will 403, but our pages below that that work on the
old system do not get parsed and display the processed information.
The page will render with things like:

<%ARGS> $bid => undef <%INIT> my $user = new RT::CurrentUser('guest');
my $queue = new RT::Queue($user); my $i = 0; my $status; my $building;
my $restrict; my $CF1; my $CF8; my $CF2; my $CF3; my $CF5; my $CF10;
my $CF7; my $CF12;

showing to the user which I believe means that the fcgi isn't
processing it at all.

My RT log has the following recent events:

[Tue Mar  2 18:28:07 2010] [debug]: Autohandler called ExternalAuth.
Response: (0, No User)
(/local/rt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:26)
[Tue Mar  2 19:53:36 2010] [error]: Couldn't find sender's address
(/local/rt/rt3/bin/../lib/RT/Interface/Email/Auth/MailFrom.pm:67)
[Tue Mar  2 19:53:36 2010] [error]: Could not record email: Could not
load a valid user
(/local/rt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:75)
[Tue Mar  2 19:53:59 2010] [error]: Couldn't find sender's address
(/local/rt/rt3/bin/../lib/RT/Interface/Email/Auth/MailFrom.pm:67)
[Tue Mar  2 19:53:59 2010] [error]: Could not record email: Could not
load a valid user
(/local/rt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:75)
[Tue Mar  2 19:54:05 2010] [debug]: Attempting to use external auth
service: Active_Directory
(/local/rt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:64)
[Tue Mar  2 19:54:05 2010] [debug]: SSO Failed and no user to test
with. Nexting (/local/rt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:92)
[Tue Mar  2 19:54:05 2010] [debug]: Autohandler called ExternalAuth.
Response: (0, No User)
(/local/rt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:26)
[Tue Mar  2 20:02:58 2010] [error]: Couldn't find sender's address
(/local/rt/rt3/bin/../lib/RT/Interface/Email/Auth/MailFrom.pm:67)
[Tue Mar  2 20:02:58 2010] [error]: Could not record email: Could not
load a valid user
(/local/rt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:75)

I was seeing this in Apache's log:

[Tue Mar 02 12:03:27 2010] [error] [client 127.0.0.1] File does not
exist: /local/rt/apache/htdocs/REST
[Tue Mar 02 13:03:27 2010] [error] [client 127.0.0.1] File does not
exist: /local/rt/apache/htdocs/REST

So I created a symlink to just see if it would have any impact at all
and the message was bounced back to me.  I believe it should have been
able to match my email address with the information available in the
directory as my account on RT has it there as well.

Any ideas on how to approach my NoAuth and REST problems?



More information about the rt-users mailing list