Strange problem after server migration with MS Edge

13 views
Skip to first unread message

Andreas

unread,
Jan 18, 2020, 10:48:59 AM1/18/20
to Trac Users
Hello,

I have just moved our trac environment from one server to another. They are both running Ubuntu 18.04 with Trac 1.2.5 on Apache.

I use account manager with .htdigest authentification.

With Firefox, Chrome, Internet Explorer and Safari, everything works fine, but when I try to access https://ticket.mydomain.com and enter the username and password in MS Edge, the http authentication window where I enter the password appears over and over again (username&password are correct). When I then enter the URL https://ticket.mydomain.com/wiki in the same session (Edge window), it works and I am immediately logged in.
When I close Edge and open it again with the link https://ticket.mydomain.com/wiki and enter my credentials, everything works fine as well.

Does anyone have an idea what could cause this issue? It's driving me crazy...

Thanks for any hints!

Best regards,
Andreas

Andreas

unread,
Jan 18, 2020, 1:45:55 PM1/18/20
to Trac Users
I was now able to trace back the issue and I'm pretty sure now that it has to do with the WSGIScriptAlias.
I forgot to mention that before, I was accessing Trac via https://ticket.mydomain.com/trac, and now I have changed this to https://ticket.mydomain.com



My trac.cong in /etc/apache2/sites-enabled before the migration:

WSGIScriptAlias /trac /var/www/html/mytrac/cgi-bin/trac.wsgi
<Location /trac >
  AuthType Digest
  AuthName "mytrac"
  AuthUserFile /var/lib/trac/mytrac/.htdigest
  Require valid-user
</Location>

New setting:

WSGIScriptAlias / /var/www/html/mytrac/cgi-bin/trac.wsgi
<Location / >
  AuthType Digest
  AuthName "mytrac"
  AuthUserFile /var/lib/trac/mytrac/.htdigest
  Require valid-user
</Location>


Is there another / better way to set the location to the root directory so it also works with MS Edge?

Any help highly appreciated!

RjOllos

unread,
Jan 18, 2020, 1:46:51 PM1/18/20
to Trac Users
What is your Apache configuration?

Is Apache handling authentication, or is it delegated to TracAccountManager? Inspecting the Apache configuration should tell us which is handling authentication.

- Ryan

Andreas

unread,
Jan 18, 2020, 1:48:10 PM1/18/20
to Trac Users
Hey Ryan, please check my latest reply ~ 1 Minute befor yours ;-)

RjOllos

unread,
Jan 18, 2020, 1:53:55 PM1/18/20
to Trac Users
Are you saying the issue doesn't occur after you change the path for Trac from /trac -> / ?
 

Andreas

unread,
Jan 18, 2020, 1:59:13 PM1/18/20
to Trac Users
No, it's exactly the opposite:
/trac --> it's working with Edge
/ --> it's not working with Edge

Andreas

unread,
Jan 18, 2020, 3:42:27 PM1/18/20
to Trac Users
I have now changed the login-procedure to web-login, now it's working! Thanks anyways!

Am Samstag, 18. Januar 2020 16:48:59 UTC+1 schrieb Andreas:
Reply all
Reply to author
Forward
0 new messages