Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19049

Request for artifacts sometimes returns invalid Last-Modified header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.14.0
    • Fix Version/s: 3.16.0
    • Component/s: Repository
    • Labels:
    • Environment:
      aws linux vm running docker container
    • Story Points:
      2

      Description

      Sometimes randomly we get the wrong timezone (CET) in the `Last-Modified` header for artifacts

      The header should always be in GMT according to discussion here: https://stackoverflow.com/a/1639028/2122701 (inc links to RFCs)

      Here is a bash loop on the vm hosting nexus for the same artifact. Depending on the frequency it has taken hours to show itself.

       

      [ec2-user@ip-10-1-1-1 ~]$ while true; do curl -v http://localhost:8081/repository/some-raw-repo/somedir/some-artifact.metadata -I -u $USER:$PASS 2>&1 | grep -v '<' | grep -E 'Date:|Last-Modified:'; sleep 10; done
      Date: Tue, 05 Feb 2019 15:16:19 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:16:30 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:16:40 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:16:50 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:17:00 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:17:10 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:17:20 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:17:30 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:17:40 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:17:50 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:18:00 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:18:10 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:18:20 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:18:30 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:18:40 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:18:50 GMT
      Last-Modified: Tue, 20 Nov 2018 13:36:47 CET
      Date: Tue, 05 Feb 2019 15:19:00 GMT
      Last-Modified: Tue, 20 Nov 2018 13:36:47 CET
      Date: Tue, 05 Feb 2019 15:19:10 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:19:20 GMT
      Last-Modified: Tue, 20 Nov 2018 12:36:47 GMT
      Date: Tue, 05 Feb 2019 15:19:30 GMT
      

      You can see generally this is the correct timezone, but sometimes oddly not. See request made at 15:19:00 GMT

      I've seen this affecting raw and maven repositories

      This runs into issues specifically with Akka HTTP library in our case which expects the header to be correctly formed

       

       

        Attachments

          Activity

            People

            Assignee:
            moncef Moncef Ben-Soula
            Reporter:
            stuart.warren Stuart Warren
            Last Updated By:
            Peter Lynch
            Team:
            NXRM - Cypher
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title