Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19423

The Etag is not retuned with npm metadata URL when none-match header is used.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.13.0
    • Component/s: None
    • Labels:
      None
    • Regression:
      Yes
    • Sprint:
      Pam - Quality 4

      Description

      The Etag is not retuned with npm metadata URL when none-match header is used.

      Have reproduced on the latest version of artifactory(6.10.3):

      curl http://35.239.5.226:8081/artifactory/api/npm/npm/esutils -vvv -uadmin:password

      •   Trying 35.239.5.226...
      • TCP_NODELAY set
      • Connected to 35.239.5.226 (35.239.5.226) port 8081 (#0)
      • Server auth using Basic with user 'admin'

      > GET /artifactory/api/npm/npm/esutils HTTP/1.1

      > Host: 35.239.5.226:8081

      > Authorization: Basic YWRtaW46cGFzc3dvcmQ=

      > User-Agent: curl/7.54.0

      > Accept: /

      >

      < HTTP/1.1 200 OK

      < Server: Artifactory/6.10.2

      < X-Artifactory-Id: 397f79ce66845c6d:222fd471:16b680a15c5:-8000

      < ETag: 35e83b025189f91413a2d9d30e72b241d566444d

       

       

      Returns a 200 OK response but when the none-match is used the 304 doesn't return the E-tag:

      curl http://Art URL:8081/artifactory/api/npm/npm/esutils -vvv -uadmin:password --header 'if-None-Match:35e83b025189f91413a2d9d30e72b241d566444d'

      •   Trying URL...
      • TCP_NODELAY set
      • Connected to URL) port 8081 (#0)
      • Server auth using Basic with user 'admin'

      > GET /artifactory/api/npm/npm/esutils HTTP/1.1

      > Host: 35.239.5.226:8081

      > Authorization: Basic YWRtaW46cGFzc3dvcmQ=

      > User-Agent: curl/7.54.0

      > Accept: /

      > if-None-Match:35e83b025189f91413a2d9d30e72b241d566444d

      >

      < HTTP/1.1 304 Not Modified

      < Server: Artifactory/6.10.2

      < X-Artifactory-Id: 397f79ce66845c6d:222fd471:16b680a15c5:-8000

      < Date: Tue, 18 Jun 2019 01:08:19 GMT

      <

       

        Attachments

          Activity

            People

            • Assignee:
              rotemk Rotem Kfir
              Reporter:
              manojt Manoj Tuguru
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: