Ticket #321 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

CI instances have different logins

Reported by: business@… Owned by: work@…
Priority: major Milestone: 0.6.5
Component: Unknown Version: 0.6.3
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

 http://ci.nmcdsp.org and  http://ci.gscf.nmcdsp.org have different logins (probably because session cookies are different over different domains). This can cause confusion.
Maybe it's better to remove the alias  http://ci.nmcdsp.org.

Change History

Changed 3 years ago by work@…

  • status changed from new to closed
  • resolution set to fixed

added sessionCookieDomain=".nmcdsp.org" to the context.xml of the the ci, test and www tomcat instances...

Changed 3 years ago by work@…

added

<Context caseSensitive="false" sessionCookieDomain=".dbnp.org">

to dbnp.org tomcat

Changed 3 years ago by work@…

  • status changed from closed to reopened
  • resolution fixed deleted

removed the fix above as this messed up sessions between gscf, metabolomics and sam... probably best sollution is to have ci.nmcdsp.org redirect to ci.gscf.nmcdsp.org etc...

Changed 3 years ago by work@…

so, this is a server side setting and not a code release...

Changed 3 years ago by work@…

  • status changed from reopened to closed
  • resolution set to fixed

created a rewrite rule in the virtual host configurations for ci, test, www, testdbnp, demodbnp

e.g.

ServerName? ci.nmcdsp.org
ServerAlias? ci.gscf.nmcdsp.org

...

# keep listening for the serveralias, but redirect to
# servername instead to make sure only one user session
# is created (tomcat will create one user session per
# domain which may lead to two (or more) usersessions
# depending on the number of serveraliases)
# see gscf ticket #321
RewriteCond? %{HTTP_HOST} ci.gscf.nmcdsp.org$ [NC]
RewriteRule?
(.*)$  http://ci.nmcdsp.org/$1 [R=301,L]

Changed 3 years ago by work@…

grrr... let me try again:

	ServerName ci.nmcdsp.org
	ServerAlias ci.gscf.nmcdsp.org
...
		# keep listening for the serveralias, but redirect to
		# servername instead to make sure only one user session
		# is created (tomcat will create one user session per
		# domain which may lead to two (or more) usersessions
		# depending on the number of serveraliases)
		# see gscf ticket #321
		RewriteCond %{HTTP_HOST} ^ci.gscf.nmcdsp.org$ [NC]
		RewriteRule ^(.*)$ http://ci.nmcdsp.org/$1 [R=301,L]
Note: See TracTickets for help on using tickets.