Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-13736

sw.lsstcorp.org is not properly redirecting to eups.lsst.codes

    Details

      Description

      root@b8d66e2deab3:/# curl -IsSL http://sw.lsstcorp.org
      HTTP/1.1 301 Moved Permanently
      Server: nginx/1.13.3
      Date: Thu, 08 Mar 2018 18:09:27 GMT
      Content-Type: text/html
      Content-Length: 185
      Connection: keep-alive
      Location: https://sw.lsstcorp.org/
       
      HTTP/1.1 404 Not Found
      Server: nginx/1.13.3
      Date: Thu, 08 Mar 2018 18:09:30 GMT
      Content-Type: text/html
      Content-Length: 169
      Connection: keep-alive
       
      root@b8d66e2deab3:/# curl -I https://sw.lsstcorp.org
      HTTP/1.1 404 Not Found
      Server: nginx/1.13.3
      Date: Thu, 08 Mar 2018 18:09:41 GMT
      Content-Type: text/html
      Content-Length: 169
      Connection: keep-alive
      
      

        Attachments

          Issue Links

            Activity

            Hide
            jhoblitt Joshua Hoblitt added a comment -

            It turns out the 'problem' isn't as severe as I thought. The redirect doesn't happen when eupspkg is not part of the path, so this shouldn't actual break any users that stuff have https://sw.lsstcorp.org/eupskg/... as an EUPS_PKGROOT. Still, all paths should redirect to avoid confusion (include that of the people maintaining the service...).

            root@b8d66e2deab3:/# curl -ISL https://sw.lsstcorp.org/eupspkg/
            HTTP/1.1 302 Moved Temporarily
            Server: nginx/1.13.3
            Date: Thu, 08 Mar 2018 19:08:27 GMT
            Content-Type: text/html
            Content-Length: 161
            Connection: keep-alive
            Location: https://eups.lsst.codes/stack/src/
            Strict-Transport-Security: max-age=15638400
            X-Frame-Options: DENY
            X-Content-Type-Options: nosniff
             
            HTTP/1.1 200 OK
            Server: nginx/1.13.3
            Date: Thu, 08 Mar 2018 19:08:28 GMT
            Content-Type: text/html;charset=UTF-8
            Connection: keep-alive
            Strict-Transport-Security: max-age=15638400
            X-Frame-Options: DENY
            X-Content-Type-Options: nosniff
            
            

            Show
            jhoblitt Joshua Hoblitt added a comment - It turns out the 'problem' isn't as severe as I thought. The redirect doesn't happen when eupspkg is not part of the path, so this shouldn't actual break any users that stuff have https://sw.lsstcorp.org/eupskg/ ... as an EUPS_PKGROOT . Still, all paths should redirect to avoid confusion (include that of the people maintaining the service...). root @b8d66e2deab3 :/# curl -ISL https: //sw.lsstcorp.org/eupspkg/ HTTP/ 1.1 302 Moved Temporarily Server: nginx/ 1.13 . 3 Date: Thu, 08 Mar 2018 19 : 08 : 27 GMT Content-Type: text/html Content-Length: 161 Connection: keep-alive Location: https: //eups.lsst.codes/stack/src/ Strict-Transport-Security: max-age= 15638400 X-Frame-Options: DENY X-Content-Type-Options: nosniff   HTTP/ 1.1 200 OK Server: nginx/ 1.13 . 3 Date: Thu, 08 Mar 2018 19 : 08 : 28 GMT Content-Type: text/html;charset=UTF- 8 Connection: keep-alive Strict-Transport-Security: max-age= 15638400 X-Frame-Options: DENY X-Content-Type-Options: nosniff
            Hide
            jhoblitt Joshua Hoblitt added a comment -

            All url paths are no redirecting. I've also changed the status code from 302 -> 301 on the basis that the redirecter will eventually be taken down.

            root@b8d66e2deab3:/# curl -ISL https://sw.lsstcorp.org/asfasfd
            HTTP/1.1 301 Moved Permanently
            Server: nginx/1.13.3
            Date: Thu, 08 Mar 2018 19:27:12 GMT
            Content-Type: text/html
            Content-Length: 185
            Connection: keep-alive
            Location: https://eups.lsst.codes
            Strict-Transport-Security: max-age=15638400
            X-Frame-Options: DENY
            X-Content-Type-Options: nosniff
             
            HTTP/1.1 200 OK
            Server: nginx/1.13.3
            Date: Thu, 08 Mar 2018 19:27:13 GMT
            Content-Type: text/html;charset=UTF-8
            Connection: keep-alive
            Strict-Transport-Security: max-age=15638400
            X-Frame-Options: DENY
            X-Content-Type-Options: nosniff
            
            

            Show
            jhoblitt Joshua Hoblitt added a comment - All url paths are no redirecting. I've also changed the status code from 302 -> 301 on the basis that the redirecter will eventually be taken down. root @b8d66e2deab3 :/# curl -ISL https: //sw.lsstcorp.org/asfasfd HTTP/ 1.1 301 Moved Permanently Server: nginx/ 1.13 . 3 Date: Thu, 08 Mar 2018 19 : 27 : 12 GMT Content-Type: text/html Content-Length: 185 Connection: keep-alive Location: https: //eups.lsst.codes Strict-Transport-Security: max-age= 15638400 X-Frame-Options: DENY X-Content-Type-Options: nosniff   HTTP/ 1.1 200 OK Server: nginx/ 1.13 . 3 Date: Thu, 08 Mar 2018 19 : 27 : 13 GMT Content-Type: text/html;charset=UTF- 8 Connection: keep-alive Strict-Transport-Security: max-age= 15638400 X-Frame-Options: DENY X-Content-Type-Options: nosniff
            Hide
            jhoblitt Joshua Hoblitt added a comment -

            In addition to improving the redirection, a jenkins job (sqre/infrastructure/build-eupsredirecter) has been added and will be triggered once a month by infra-monthly.

            Show
            jhoblitt Joshua Hoblitt added a comment - In addition to improving the redirection, a jenkins job ( sqre/infrastructure/build-eupsredirecter ) has been added and will be triggered once a month by infra-monthly .

              People

              • Assignee:
                jhoblitt Joshua Hoblitt
                Reporter:
                jhoblitt Joshua Hoblitt
                Watchers:
                Adam Thornton, Frossie Economou, Joshua Hoblitt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: