Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12

      Description

      The ActionXMLReader class uses a parser with dtd validation enabled.
      Distributing the action-set.dtd used for validation in a jar file ist not
      supported.

      Details:
      To load the dtd from a jar file (or any where) an EntityResolver has to be
      defined. The class ActionXMLReader.ActionHandler which implements EntityResolver
      is not extendable.

      Solution:
      class ActionXMLReader {
      private EntityResolver entityResolver;

      public void setEntityResolver(EntityResolver aEntityResolver)

      { entityResolver = aEntityResolver; }

      class ActionHandler extends DefaultHandler {

      public InputSource resolveEntity (String publicId, String systemId)
      throws IOException, SAXException
      {
      if (entityResolver == null)

      { return null; }

      else

      { return entityResolver.resolveEntity(publicId, systemId); }

      }
      }
      }

      Regards,
      mimal

        Activity

        Hide
        michaelbushe added a comment -

        This is a big deal, I'll get this in soon.

        Show
        michaelbushe added a comment - This is a big deal, I'll get this in soon.

          People

          • Assignee:
            sam-issues
            Reporter:
            mimal
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: