Uploaded image for project: 'Okapi'
  1. Okapi
  2. OKAPI-525

POST /install return 500 when enabling module from one version to another version

    XMLWordPrintable

    Details

    • Template:

      Description

      It looks that the From version being incorrectly parsed:

      POST /_/proxy/tenants/fs00000000/install
      x-okapi-tenant: supertenant
      x-okapi-token: eyJhbGciOiJIUzUxMiJ9.eyJzdWI
      content-type: text/plain
      user-agent: PostmanRuntime/7.1.1
      accept: */*
      host: localhost:9130
      accept-encoding: gzip, deflate
      content-length: 66
      [{"id": "mod-users-14.4.1-SNAPSHOT.346","action": "enable"}]
      HTTP/1.1 500
      status: 500
      date: Mon, 19 Feb 2018 20:56:41 GMT
      content-type: text/plain
      content-length: 109
      connection: keep-alive
      server: nginx/1.10.3
      x-okapi-trace: POST mod-authtoken-1.2.0-SNAPSHOT.77 http://localhost:8051/mod-authtoken//_/proxy/tenants/fs00000000/install : 202 42046us
      Request for mod-users-14.4.1-SNAPSHOT.346 /_/tenant failed with For input string: "mod-users-14.4.1-SNAPSHOT"
      

      Here is the correct output of the simulated run:

      POST /_/proxy/tenants/fs00000000/install
      x-okapi-tenant: supertenant
      x-okapi-token: eyJhbGciOiJIUzUxMiJ9.eyJzd
      user-agent: PostmanRuntime/7.1.1
      accept: */*
      host: localhost:9130
      accept-encoding: gzip, deflate
      content-length: 66
      [{"id": "mod-users-14.4.1-SNAPSHOT.346","action": "enable"}]
      HTTP/1.1 200
      status: 200
      date: Mon, 19 Feb 2018 20:51:19 GMT
      content-type: application/json
      content-length: 115
      connection: keep-alive
      server: nginx/1.10.3
      x-okapi-trace: POST mod-authtoken-1.2.0-SNAPSHOT.77 http://localhost:8051/mod-authtoken//_/proxy/tenants/fs00000000/install.. : 202 37196us,POST okapi-2.8.5-SNAPSHOT /_/proxy/tenants/fs00000000/install.. : 200 50998us
      [ { "id" : "mod-users-14.4.1-SNAPSHOT.346", "from" : "mod-users-14.4.1-SNAPSHOT.345", "action" : "enable" } ]
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                adam Adam Dickmeiss
                Reporter:
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour, 15 minutes
                    1h 15m

                      TestRail: Runs

                        TestRail: Cases