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

"411 Length Required" when using nexus-staging:close and other Nexus client operations with nginx

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Build Tooling
    • Labels:
      None
    • Environment:
      nexus-staging-maven-plugin 1.2

      Description

      This issue covers an issue first reported as https://github.com/sonatype/nexus-maven-plugins/issues/13 .

      This is my pom.xml:

      <plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <version>1.0.2</version>
          <configuration>
              <serverId>sonatype.nexus</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <stagingRepositoryId>jcabi</stagingRepositoryId>
              <deployUrl>https://oss.sonatype.org/service/local/staging/deploy/maven2</deployUrl>
              <description>${project.version}</description>
          </configuration>
          <executions>
              <execution>
                  <id>deploy-to-sonatype</id>
                  <phase>deploy</phase>
                  <goals>
                      <goal>deploy</goal>
                      <goal>close</goal>
                      <goal>release</goal>
                  </goals>
              </execution>
          </executions>
      </plugin>
      

      `deploy` goal works fine, oss.sonatype.org repository receives my data. Then, the `close` goal fails:

      ```
      [INFO] Uploading locally staged directory: NONE
      [INFO] * Uploading locally staged artifacts to: https://oss.sonatype.org/service/local/staging/deploy/maven2
      [INFO] * Upload of locally staged artifacts finished.
      [INFO] Remote staging finished with success.
      [INFO]
      [INFO] — nexus-staging-maven-plugin:1.0.2:close (deploy-to-sonatype) @ jcabi-velocity —
      [INFO] Connecting to Nexus...
      [INFO] Using server credentials with ID="sonatype.nexus" from Maven settings.
      [INFO] Closing staging repository with IDs=[jcabi]
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] jcabi-velocity .................................... FAILURE [19.301s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 31.734s
      [INFO] Finished at: Thu Aug 30 14:46:37 CEST 2012
      [INFO] Final Memory: 36M/388M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.0.2:close (deploy-to-sonatype) on project jcabi-velocity: Execution deploy-to-sonatype of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.0.2:close failed: Length Required : entity body dump follows: <html>
      [ERROR] <head><title>411 Length Required</title></head>
      [ERROR] <body bgcolor="white">
      [ERROR] <center><h1>411 Length Required</h1></center>
      [ERROR] <hr><center>nginx/0.8.54</center>
      [ERROR] </body>
      [ERROR] </html>

      ```

      I believe that a more meaningful message should be rendered.

        Attachments

          Activity

            People

            Assignee:
            plynch Peter Lynch
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title