Uploaded image for project: 'mod-login'
  1. mod-login
  2. MODLOGIN-157

Unhandled exception for /authn/login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: TBD
    • Resolution: Done
    • Affects Version/s: 7.5.0
    • Fix Version/s: 7.6.0
    • Labels:
      None
    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      CP: sprint 126
    • Story Points:
      2
    • Development Team:
      Core: Platform

      Description

      Steps to reproduce:
      Start mod-login .. doesn't even need to be configured for databae

      curl -HX-Okapi-Token:a -HContent-Type:application/json -HX-Okapi-Tenant:diku \
         -d'{"username":"myuser","password":"mypass"}' http://localhost:8081/authn/login
      

      The curl hangs.. and mod-login logs:

      08:59:50 [] [] [] [] INFO  RestRouting          invoking postAuthnLogin
      08:59:50 [] [] [] [] ERROR ?                    Unhandled exception
      io.vertx.core.VertxException: Invalid url: null/users?query=username==myuser
      	at io.vertx.ext.web.client.impl.WebClientBase.requestAbs(WebClientBase.java:236) ~[mod-login-fat.jar:?]
      	at io.vertx.ext.web.client.impl.WebClientBase.requestAbs(WebClientBase.java:226) ~[mod-login-fat.jar:?]
      	at io.vertx.ext.web.client.impl.WebClientBase.getAbs(WebClientBase.java:81) ~[mod-login-fat.jar:?]
      	at org.folio.rest.impl.LoginAPI.lookupUser(LoginAPI.java:193) ~[mod-login-fat.jar:?]
      	at org.folio.rest.impl.LoginAPI.lambda$5(LoginAPI.java:359) ~[mod-login-fat.jar:?]
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96) ~[mod-login-fat.jar:?]
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:59) ~[mod-login-fat.jar:?]
      	at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:40) ~[mod-login-fat.jar:?]
      	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [mod-login-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) [mod-login-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497) [mod-login-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [mod-login-fat.jar:?]
      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [mod-login-fat.jar:?]
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [mod-login-fat.jar:?]
      	at java.lang.Thread.run(Thread.java:829) [?:?]
      
      

      It appears that it happens because X-Okapi-Url is not specified.

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              adam Adam Dickmeiss
              Reporter:
              adam Adam Dickmeiss
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases