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

Pull: ignore module descriptors with unsupported features

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • 4.4.2, 4.7.2
    • 4.7.3, 4.8.0
    • None
    • CP: sprint 110
    • 2
    • Core: Platform

    Description

      Pulling with 4.4.2 against the registry with 4.7.1 results in unhandled exception and it hangs (see below). Moreover Okapi should ignore module descriptors with features that are unknown to it (That's a new feature, actually).

      17:01:21 [107861/proxy] [supertenant] [] [] INFO  PullManager          pull smart
      17:01:30 [107861/proxy] [supertenant] [] [] ERROR ?                    Unhandled exception
      io.vertx.core.json.DecodeException: Failed to decode:Unrecognized field "replaces" (class org.folio.okapi.bean.Permission), not marked as ignorable (5 known properties: "permissionName", "description", "displayName", "visible", "subPermissions"])
       at [Source: (StringReader); line: 2082771, column: 19] (through reference chain: java.lang.Object[][10947]->org.folio.okapi.bean.ModuleDescriptor["permissionSets"]->java.lang.Object[][14]->org.folio.okapi.bean.Permission["replaces"])
      	at io.vertx.core.json.jackson.DatabindCodec.fromParser(DatabindCodec.java:140) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.json.jackson.DatabindCodec.fromString(DatabindCodec.java:101) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.json.Json.decodeValue(Json.java:87) ~[okapi-core-fat.jar:?]
      	at org.folio.okapi.managers.PullManager.lambda$getList$11(PullManager.java:128) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:59) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.HttpEventHandler.handleEnd(HttpEventHandler.java:76) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.HttpClientResponseImpl.handleEnd(HttpClientResponseImpl.java:250) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xClientConnection$StreamImpl.lambda$new$1(Http1xClientConnection.java:348) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.streams.impl.InboundBuffer.handleEvent(InboundBuffer.java:240) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.streams.impl.InboundBuffer.write(InboundBuffer.java:130) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xClientConnection$StreamImpl.handleEnd(Http1xClientConnection.java:558) ~[okapi-core-fat.jar:?]
      	at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:73) [okapi-core-fat.jar:?]
      	at io.vertx.core.impl.DuplicatedContext.execute(DuplicatedContext.java:184) [okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xClientConnection.handleResponseEnd(Http1xClientConnection.java:758) [okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xClientConnection.handleHttpMessage(Http1xClientConnection.java:639) [okapi-core-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xClientConnection.handleMessage(Http1xClientConnection.java:602) [okapi-core-fat.jar:?]
      	at io.vertx.core.net.impl.ConnectionBase.read(ConnectionBase.java:151) [okapi-core-fat.jar:?]
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss (Inactive)
                adam Adam Dickmeiss (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases