Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38529

Invalid logic when checking for valid raw JSON statement

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.6
    • Fix Version/s: 10.8 [Tentative]
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1429

      Description

      When registering a raw JSON statement in BaseLearningResourceStoreService, the valid statement check for raw JSON is coded like this:

      else if (statement.getRawJSON() != null
      && !StringUtils.isNotBlank(statement.getRawJSON()))

      when it SHOULD be:

      else if (StringUtils.isNotBlank(statement.getRawJSON()))

      I will create a PR shortly with the fix.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                relong Bob Long
                Reporter:
                relong Bob Long
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code