Uploaded image for project: 'XDStarClient'
  1. XDStarClient
  2. XDSTAR-672

NPE is thrown when jks configuration is wrong

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.3
    • Component/s: None
    • Labels:
      None
    • Account:
      Maintenance 2018 (MAINTENANCE2018)

      Description

      When the jks configuration is wrong (missing file or missing preference), a confusing error is displayed as response when trying to contact a SUT using HTTPS :

      The request has not be sent to the server. An exception occure when trying to send the request : java.io.IOException: java.lang.NullPointerException
          at net.ihe.gazelle.xdstar.comon.util.URLCheck.createHttpsConnection(URLCheck.java:93)
          at net.ihe.gazelle.xdstar.comon.util.URLCheck.createHttpsConnection(URLCheck.java:62)
          at net.ihe.gazelle.xdstar.core.MessageSenderCommon.sendOverHttps(MessageS...

      The method net.ihe.gazelle.xdstar.comon.util.URLCheck.createHttpsConnection need to be refactored to handle more efficiently exceptions and throw appropriate error message to the end-user.
      (A unique unspecified try-catch Exception is unacceptable)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hra Hilary Rama
                Reporter:
                ceoche Cédric EOCHE-DUVAL
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 6 hours
                  6h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours Time Not Required
                  4h

                    Potential Duplicates