Uploaded image for project: 'mod-kb-ebsco-java'
  1. mod-kb-ebsco-java
  2. MODKBEKBJ-550

Endpoint /status returns 500 error when url in credentials is invalid

    XMLWordPrintable

    Details

    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      eHoldings Sprint 104
    • Story Points:
      2
    • Development Team:
      Spitfire
    • Release:
      Q3 2020 Hot Fix #1

      Description

      Overview:
      GET /status endpoint fails with a 500 after a fresh install of mod-kb-ebsco-java module. The cause of this bug: migration scripts create dummy credentials with invalid url.
      Steps to Reproduce:

      1. Fresh install mod-kb-ebsco-java
      2. Call status endpoint

      Expected Results: Responce 200 status with isConfigurationValid=false
      Actual Results: Responce 500 status
      Additional Information:

      2020-12-16T05:15:21.625Z 16 Dec 2020 05:15:21:625 INFO  LogUtils [] Do select query = SELECT * FROM fs00000000_mod_kb_ebsco_java.kb_credentials t1; with params = []
      2020-12-16T05:15:21.633Z 16 Dec 2020 05:15:21:633 INFO  HoldingsRequestHelper [] constructurl - path=http://dummy.url.com/rm/rmaccounts/dummyCustomerId/
      2020-12-16T05:15:21.633Z 16 Dec 2020 05:15:21:633 INFO  HoldingsRequestHelper [] RMAPI Service GET absolute URL is: http://dummy.url.com/rm/rmaccounts/dummyCustomerId/
      2020-12-16T05:15:21.638Z 16 Dec 2020 05:15:21:638 INFO  LogUtil [reqId=182546/eholdings] org.folio.rest.RestVerticle start  invoking getEholdingsKbCredentials
      2020-12-16T05:15:21.639Z 16 Dec 2020 05:15:21:639 INFO  LogUtil [reqId=182546/eholdings] 127.0.0.1:59518 GET /eholdings/kb-credentials null HTTP_1_1 200 570 14 tid=fs00000000 OK 
      2020-12-16T05:15:21.647Z 16 Dec 2020 05:15:21:647 ERROR ErrorHandler [] Internal Server Error
      2020-12-16T05:15:21.647Z io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException: Search domain query failed. Original hostname: 'dummy.url.com' failed to resolve 'dummy.url.com.VpcA.us-east-1.eis-FolioIntegration.cloud' after 2 queries 
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:927) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsResolveContext.tryToFinishResolve(DnsResolveContext.java:886) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsResolveContext.query(DnsResolveContext.java:358) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsResolveContext.onResponse(DnsResolveContext.java:545) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsResolveContext.access$400(DnsResolveContext.java:64) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsResolveContext$2.operationComplete(DnsResolveContext.java:402) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:577) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:570) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:549) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:490) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsQueryContext.trySuccess(DnsQueryContext.java:201) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsQueryContext.finish(DnsQueryContext.java:193) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.channelRead(DnsNameResolver.java:1223) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:93) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [ms.jar:?]
      2020-12-16T05:15:21.647Z 	at java.lang.Thread.run(Thread.java:834) [?:?]
      2020-12-16T05:15:21.647Z 16 Dec 2020 05:15:21:647 INFO  LogUtil [reqId=132314/eholdings] org.folio.rest.RestVerticle start  invoking getEholdingsStatus
      2020-12-16T05:15:21.648Z 16 Dec 2020 05:15:21:648 INFO  LogUtil [reqId=132314/eholdings] 127.0.0.1:59520 GET /eholdings/status null HTTP_1_1 500 107 19 tid=fs00000000 Internal Server Error 
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sduvvuri Sobha Duvvuri
                Reporter:
                psmagin Pavlo Smahin
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases