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

Conan: Server returns wrong message on missing permissions

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.15.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When a user uploads a package (with same package id) to a conan repository and hasn't got DELETE permissions, the server returns highly irritating messages:

      Uploading conaninfo.txt                                               
      Uploading conanmanifest.txt                                           
      
      
      Waiting 5 seconds to retry...
      ERROR: 502 Server Error: Bad Gateway for url: https://rel.besi.com:443/artifactory/api/conan/da-conan-pre-local/v1/files/besi/DragonEye/3.9.0-191212-99af/stable/0/package/8fcda9778302e0b4a927f173d9c41c4c85150579/0/conan_package.tgz
      ERROR: 
      Error uploading file: conan_package.tgz, '502 Server Error: Bad Gateway for url: https://rel.besi.com:443/artifactory/api/conan/da-conan-pre-local/v1/files/besi/DragonEye/3.9.0-191212-99af/stable/0/package/8fcda9778302e0b4a927f173d9c41c4c85150579/0/conan_package.tgz'
      ERROR: 500 Server Error: Internal Server Error for url: https://rel.besi.com:443/artifactory/api/conan/da-conan-pre-local/v1/files/besi/DragonEye/3.9.0-191212-99af/stable/0/package/8fcda9778302e0b4a927f173d9c41c4c85150579/0/conanmanifest.txt
      ERROR: 
      Error uploading file: conanmanifest.txt, '500 Server Error: Internal Server Error for url: https://rel.besi.com:443/artifactory/api/conan/da-conan-pre-local/v1/files/besi/DragonEye/3.9.0-191212-99af/stable/0/package/8fcda9778302e0b4a927f173d9c41c4c85150579/0/conanmanifest.txt'
      ERROR: Execute upload again to retry upload the failed files: conan_package.tgz, conanmanifest.txt. [Remote: da-conan-pre]
      

      ... whereas the server log contains:

      2019-12-13 10:30:43,950 [http-nio-8081-exec-9] [WARN ] (o.a.r.ArtifactoryResponseBase:125) - Sending HTTP error code 403: Not enough permissions to delete/overwrite artifact 'da-conan-pre-local:besi/DragonEye/3.9.0-191212-99af/stable/0/package/8fcda9778302e0b4a927f173d9c41c4c85150579/0/conan_package.tgz' (user 'vis-jenkins' needs DELETE permission).
      

      I would expect that the server exactly returns this message to the command line client.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              steffel Stefan Felkel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: