title: JFROG RPM issues
body: <p>We have set up a jfrog repository for RPM files.
  We are building RPM using 'rpm-maven-plugin' and were trying to upload the rpm file into jfrog repository.</p>
  
  <p>We have tried using CMD- jfrog rt u "(*.rpm)" service/ --recursive=false --props=rpm.metadata.version=test</p>
  
  <p>We have also updated in maven settings.xml and deploymentRepo tag in maven for jfrog repo but still failing.</p>
  
  <p>We were successfully deploying the RPM in YUM repository and checksum updated in repodata as well but not working with JFROG.</p>
  
  <p>Maven RPM plugin configuration:</p>
  
  <pre><code>&lt;plugin&gt;
  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
  &lt;artifactId&gt;rpm-maven-plugin&lt;/artifactId&gt;
  &lt;executions&gt;
  &lt;execution&gt;
  &lt;id&gt;generate-rpm&lt;/id&gt;
  &lt;phase&gt;install&lt;/phase&gt;
  &lt;goals&gt;
  &lt;goal&gt;rpm&lt;/goal&gt;
  &lt;/goals&gt;
  &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;configuration&gt;
  &lt;needarch&gt;noarch&lt;/needarch&gt;
  &lt;targetOS&gt;linux&lt;/targetOS&gt;
  &lt;name&gt;${artifact_name}&lt;/name&gt;
  &lt;version&gt;${rpm_version}&lt;/version&gt;
  &lt;license&gt;${name}&lt;/license&gt;
  &lt;group&gt;default&lt;/group&gt;
  &lt;release&gt;${rpm_release}&lt;/release&gt;
  &lt;keyname /&gt;
  &lt;repackJars&gt;false&lt;/repackJars&gt;
  &lt;copyTo&gt;${directory}/${artifact_name}${version}${release}.noarch.rpm&lt;/copyTo&gt;
  &lt;requires&gt;
  &lt;require&gt;jre8 &gt;= 1.8&lt;/require&gt;
  &lt;/requires&gt;
  &lt;repackJars&gt;false&lt;/repackJars&gt;
  &lt;defineStatements&gt;
  &lt;defineStatement&gt;_build_sign DSA&lt;/defineStatement&gt;
  &lt;defineStatement&gt;_source_filedigest_algorithm md5&lt;/defineStatement&gt;
  &lt;defineStatement&gt;_binary_filedigest_algorithm md5&lt;/defineStatement&gt;
  &lt;defineStatement&gt;_source_payload w0.gzdio&lt;/defineStatement&gt;
  &lt;defineStatement&gt;_binary_payload w0.gzdio&lt;/defineStatement&gt;
  &lt;defineStatement&gt;__os_install_post %{nil}&lt;/defineStatement&gt;
  &lt;/defineStatements&gt;
  &lt;preinstallScriptlet&gt;
  &lt;scriptFile&gt;${directory}/scripts/preinstall.sh&lt;/scriptFile&gt;
  &lt;/preinstallScriptlet&gt;
  &lt;postinstallScriptlet&gt;
  &lt;scriptFile&gt;${directory}/scripts/postinstall.sh&lt;/scriptFile&gt;
  &lt;/postinstallScriptlet&gt;
  &lt;preremoveScriptlet&gt;
  &lt;scriptFile&gt;${directory}/scripts/preremove.sh&lt;/scriptFile&gt;
  &lt;/preremoveScriptlet&gt;
  &lt;postremoveScriptlet&gt;
  &lt;scriptFile&gt;${directory}/scripts/postremove.sh&lt;/scriptFile&gt;
  &lt;/postremoveScriptlet&gt;
  &lt;defaultFilemode&gt;644&lt;/defaultFilemode&gt;
  &lt;defaultDirmode&gt;711&lt;/defaultDirmode&gt;
  &lt;defaultUsername&gt;${user}&lt;/defaultUsername&gt;
  &lt;defaultGroupname&gt;${groupname}&lt;/defaultGroupname&gt;
  &lt;mappings&gt;
  &lt;mapping&gt;
  &lt;directory&gt;${dir_path}&lt;/directory&gt;
  &lt;sources&gt;
  &lt;source&gt;
  &lt;location&gt;${basedir}/../target/service-test.jar&lt;/location&gt;
  &lt;/source&gt;
  &lt;/sources&gt;
  &lt;/mapping&gt;
  &lt;/mappings&gt;
  &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>While uploading we are getting below error.
  [Error] [Thread 2] Artifactory response: 403 Forbidden</p>
  
  <pre><code>{
    "errors": [
  
  
  {       "status": 404,       "message": "Checksum deploy failed. No existing file with SHA-1: abc"     }
    ]
  }
  [Error] Failed uploading 1 artifacts.
  {
    "status": "failure",
    "totals":
  
  {     "success": 0,     "failure": 1   }
  }
  </code></pre>
  
  <p>We were able to successfully upload the same RPM file using JFROG GUI.</p>