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

OSP XSL Portal Fails to Check for Null When Using XmlUtils.readDocumentFromString()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.1
    • Component/s: OSP: Portal
    • Labels:
      None

      Description

      XmlUtils.readDocumentFromString(...) will log an error message and return null if there is any parsing problem. Within the XSL portal XsltRenderContext passes the portal's rendering of tools to XMLUtils.reeadDocumentFromString(..) without checking the result. As a consequence it is possible for the portal to throw an NPE with little clue as to what has happened.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    bkirschn Beth Kirschner
                    Reporter:
                    duffy Duffy Gillman (Inactive)
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration