Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4267

AlertServiceImpl.notifySuperUsers throws exception for exceptions with short stack traces

    XMLWordPrintable

Details

    Description

      Line 254 is this:

      message = message + ": " + stackTrace.substring(0, Alert.TEXT_MAX_LENGTH - message.length() - 2);
      

      Which assumes the length of stackTrace is greater than Alert.TEXT_MAX_LENGTH - message.length() - 2

      Gliffy Diagrams

        Attachments

          Activity

            People

              areo Arkadiusz KoƂodziejski
              rowanseymour Rowan Seymour
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 2 hours Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 2 hours Remaining Estimate - 2 hours
                  2h