Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8015016

Improve JAXP 1.5 error message

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u40, 8
    • Fix Version/s: 8
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b96

      Backports

        Description

        When external access is rejected by the newly introduced properties in JAXP 1.5, an error is reported back that looks like the following:

        [Fatal Error] somefile.xml:11:50: External DTD: Failed to read external DTD 'somefile.dtd', because 'file' access is not allowed.

        This error message can be confused with a security manager issue, making it hard for users to identify the real issue.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                joehw Joe Wang
                Reporter:
                joehw Joe Wang
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: