-
Bug
-
Resolution: Fixed
-
P4
-
jaxp_2.0
-
alpha
-
x86
-
solaris
-
Verified
TCK 6.0 b04 negative testcases on not well formed xml unexpectedly passed on mustang b46( passed in b45 )
( using javax.xml.parsers.SAXParser ):
Tests:
api/javax_xml/xmlCore/w3c/ibm/ibm_not_wf.html#ibm_not_wf_P14_ibm14n01_xml
parsed correctly the next xml( expect error ):
---------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE student [
<!ELEMENT student (#PCDATA)>
<!ATTLIST student first CDATA #REQUIRED
last CDATA #IMPLIED>
]>
<!-- testing invalid chardata string -->
<student first="Snow">My name is Snow ]]> Man</student>
------------------------------------------------------------
Invalid sequence is ]] ^^
Tests:
api/javax_xml/xmlCore/w3c/ibm/ibm_not_wf.html#ibm_not_wf_P68_ibm68n06_xml
api/javax_xml/xmlCore/w3c/sun/sun_not_wf.html#not_wf_sa03
expects error cause tested xmls contains external entities, but declared as standalone.
See attached xmls: ibm14n01.xml, not-sa03.xml.
----------------------------------
How to reproduce:
# Paths to TCK, java, xml file must be changed
#Script start----------------------
LD_LIBRARY_PATH="/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/SunOS.x86:/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/SunOS.x86/jmx:/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/SunOS.x86"
DISPLAY="stt-05:0.0"
HOME="/home/stt-robot"
export LD_LIBRARY_PATH DISPLAY HOME
PRODUCT="/set/stt/jdk_promotions/JDK6.0/b45/binaries/solaris-i586/jre1.6.0/bin/java"
$PRODUCT -Xshare:off -Xfuture -classpath /set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/classes -Djava.security.policy=/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/jck.policy javasoft.sqe.tests.api.xml.xmlCore.w3c.TestRun -type not-wf -t file:///set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/tests/api/javax_xml/xmlCore/w3c/ibm/ibm_not_wf.html#ibm_not_wf_P14_ibm14n01_xml /set/stt/jck_workspace/manual_run/dg159268_runs/failed_tests/javax_xml/ibm14n01.xml
#---------Script end
( using javax.xml.parsers.SAXParser ):
Tests:
api/javax_xml/xmlCore/w3c/ibm/ibm_not_wf.html#ibm_not_wf_P14_ibm14n01_xml
parsed correctly the next xml( expect error ):
---------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE student [
<!ELEMENT student (#PCDATA)>
<!ATTLIST student first CDATA #REQUIRED
last CDATA #IMPLIED>
]>
<!-- testing invalid chardata string -->
<student first="Snow">My name is Snow ]]> Man</student>
------------------------------------------------------------
Invalid sequence is ]] ^^
Tests:
api/javax_xml/xmlCore/w3c/ibm/ibm_not_wf.html#ibm_not_wf_P68_ibm68n06_xml
api/javax_xml/xmlCore/w3c/sun/sun_not_wf.html#not_wf_sa03
expects error cause tested xmls contains external entities, but declared as standalone.
See attached xmls: ibm14n01.xml, not-sa03.xml.
----------------------------------
How to reproduce:
# Paths to TCK, java, xml file must be changed
#Script start----------------------
LD_LIBRARY_PATH="/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/SunOS.x86:/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/SunOS.x86/jmx:/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/SunOS.x86"
DISPLAY="stt-05:0.0"
HOME="/home/stt-robot"
export LD_LIBRARY_PATH DISPLAY HOME
PRODUCT="/set/stt/jdk_promotions/JDK6.0/b45/binaries/solaris-i586/jre1.6.0/bin/java"
$PRODUCT -Xshare:off -Xfuture -classpath /set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/classes -Djava.security.policy=/set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/lib/jck.policy javasoft.sqe.tests.api.xml.xmlCore.w3c.TestRun -type not-wf -t file:///set/stt/jck_promotions/6.0/beta/b04/binaries/JCK-runtime-60/tests/api/javax_xml/xmlCore/w3c/ibm/ibm_not_wf.html#ibm_not_wf_P14_ibm14n01_xml /set/stt/jck_workspace/manual_run/dg159268_runs/failed_tests/javax_xml/ibm14n01.xml
#---------Script end