Uploaded image for project: 'mod-eusage-reports'
  1. mod-eusage-reports
  2. MODEUR-115

Typo in modulePermissions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • 1.0.1
    • 1.0.2, 1.1.0
    • None
    • eUsage Sprint 126
    • 0.5
    • Thor
    • R3 2021 Bug Fix

    Description

      Against Thor:

      curl -HX-Okapi-Token:${OKAPI_TOKEN} -HX-Okapi-Url:${OKAPI_URL} \
      		-HX-Okapi-Tenant:${OKAPI_TENANT} \
      		-HContent-Type:application/json \
      		-d'{"agreementId":"3b6623de-de39-4b43-abbc-998bed892025" }' \
      		"$U/eusage-reports/report-data/from-agreement"
      ...
      
      4:44:50 INFO  TenantPgPoolImpl     preparedQuery INSERT INTO diku_mod_eusage_reports.status(id, status) VALUES($1, $2) ON CONFLICT(id) DO UPDATE SET status = $2
      14:44:50 ERROR EusageReportsApi     GET /invoice-storage/invoice-lines?limit=2147483647&query=poLineId%3D%3D37a77307-8c82-49fa-9864-2762a49836ae returned status code 403
      java.lang.RuntimeException: GET /invoice-storage/invoice-lines?limit=2147483647&query=poLineId%3D%3D37a77307-8c82-49fa-9864-2762a49836ae returned status code 403
      	at org.folio.eusage.reports.api.EusageReportsApi.lambda$getRequestSend$41(EusageReportsApi.java:828) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.Mapping.onSuccess(Mapping.java:35) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.FutureBase.emitSuccess(FutureBase.java:62) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.FutureImpl.tryComplete(FutureImpl.java:179) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.PromiseImpl.tryComplete(PromiseImpl.java:23) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.PromiseImpl.onSuccess(PromiseImpl.java:49) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.PromiseImpl.handle(PromiseImpl.java:41) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.future.PromiseImpl.handle(PromiseImpl.java:23) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.ext.web.client.impl.HttpContext.handleDispatchResponse(HttpContext.java:371) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.ext.web.client.impl.HttpContext.execute(HttpContext.java:358) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.ext.web.client.impl.HttpContext.next(HttpContext.java:336) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.ext.web.client.impl.HttpContext.fire(HttpContext.java:303) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.ext.web.client.impl.HttpContext.dispatchResponse(HttpContext.java:265) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.ext.web.client.impl.HttpContext.lambda$null$8(HttpContext.java:528) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:59) ~[mod-eusage-reports-fat.jar:?]
      	at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:37) ~[mod-eusage-reports-fat.jar:?]
      	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[mod-eusage-reports-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[mod-eusage-reports-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497) [mod-eusage-reports-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [mod-eusage-reports-fat.jar:?]
      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [mod-eusage-reports-fat.jar:?]
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [mod-eusage-reports-fat.jar:?]
      	at java.lang.Thread.run(Thread.java:829) [?:?]
      

      Looks like some permissions for diku_admin is not present on Thor.

      TestRail: Results

        Attachments

          Activity

            People

              adam Adam Dickmeiss
              adam Adam Dickmeiss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases