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

Documentation for repositories REST XML payload is incorrect.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.0.1
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
      None
    • Story Points:
      1

      Description

      If you attempt to create a repository using the XML payload described in the documentation it fails, you get error 400. No further information is printed in the log, even at debug level.

      This is due to missing required fields. If you send up all fields that come from GET request it works.

      curl -u admin:admin123 -H "Content-Type: application/xml" http://localhost:8081/nexus/service/local/repositories/releases
      <repository>
        <data>
          <contentResourceURI>http://localhost:8081/nexus/content/repositories/releases</contentResourceURI>
          <id>releases</id>
          <name>Releases</name>
          <provider>maven2</provider>
          <providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
          <format>maven2</format>
          <repoType>hosted</repoType>
          <exposed>true</exposed>
          <writePolicy>ALLOW_WRITE_ONCE</writePolicy>
          <browseable>true</browseable>
          <indexable>true</indexable>
          <notFoundCacheTTL>1440</notFoundCacheTTL>
          <repoPolicy>RELEASE</repoPolicy>
          <downloadRemoteIndexes>false</downloadRemoteIndexes>
          <defaultLocalStorageUrl>file:/Users/rseddon/Nexii/nexus-1801/nexus-professional-webapp-1.8.0.1/./../sonatype-work/nexus/storage/releases/</defaultLocalStorageUrl>
        </data>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rseddon Rich Seddon
                Last Updated By:
                Rich Seddon
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: