Closed Bug 13338 Opened 25 years ago Closed 25 years ago

DOM API Methods fail for NULL values

Categories

(Core Graveyard :: Java APIs for DOM, defect, P3)

Sun
Solaris
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rpallath, Assigned: akhil.arora)

Details

Attachments

(1 file)

Many of the JavaDOM API methods fail (or dump core) on passing NULL
values as parameters to the methods.
I have accumulated all the methods that fail, and put it out into a
tabular format.

To execute them
Build apprunner.
follow instructions as described in mozilla/java/dom/tests/src/README
and then invoke each test from command line
(a list of command line invokations is listed after this table).

Logs are stored in directory. mozilla/java/dom/tests/src/log.




==========================================================================
|        Object->Method                  |       Parameter Value         |
==========================================================================
    Attr->setValue                       |        NULL
--------------------------------------------------------------------------
    CharacterData->appendData            |        NULL
--------------------------------------------------------------------------
    CharacterData->insertData            |        0, NULL
--------------------------------------------------------------------------
    CharacterData->replaceData           |        0,1, NULL
--------------------------------------------------------------------------
    CharacterData->setData               |        NULL
--------------------------------------------------------------------------
    DOMImplementation->hasFeature        |        NULL, NULL
--------------------------------------------------------------------------
    Document->createAttribute            |        NULL
--------------------------------------------------------------------------
    Document->createComment              |        NULL
--------------------------------------------------------------------------
    Document->createCDATASection         |        NULL
--------------------------------------------------------------------------
    Document->createElement              |        NULL
--------------------------------------------------------------------------
    Document->createEntityReference      |        NULL
--------------------------------------------------------------------------
    Document->createProcessInstruction   |        NULL, NULL
--------------------------------------------------------------------------
    Document->createTextNode             |        NULL
--------------------------------------------------------------------------
    Document->getElementsByTagName       |        NULL
--------------------------------------------------------------------------
    Element->getAttributeNode           |         NULL
--------------------------------------------------------------------------
    Element->getAttribute               |         NULL
--------------------------------------------------------------------------
    Element->getElementsByTagName       |         NULL
--------------------------------------------------------------------------
    Element->setAttribute               |         NULL, NULL
--------------------------------------------------------------------------
    Node->appendChild                   |         NULL
--------------------------------------------------------------------------
    Node->equals                        |         NULL
--------------------------------------------------------------------------
    Node->insertBefore                  |         NULL, NULL
--------------------------------------------------------------------------
    Node->removeChild                   |         NULL
--------------------------------------------------------------------------
    Node->replaceChild                  |         NULL, NULL
--------------------------------------------------------------------------
    Node->setNodeValue                  |         NULL
--------------------------------------------------------------------------
    ProcessingInstruction->setData      |         NULL
--------------------------------------------------------------------------

To invoke these tests (in the same order), from command line

sh autorun.sh -t org.mozilla.dom.test.AttrImpl_setValue_String_0
sh autorun.sh -t org.mozilla.dom.test.CharacterDataImpl_appendData_String_0
sh autorun.sh -t org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_0
sh autorun.sh -t org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_Stri
ng_0
sh autorun.sh -t org.mozilla.dom.test.CharacterDataImpl_setData_String_0
sh autorun.sh -t org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_St
ring_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createAttribute_String_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createComment_String_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createCDATASection_String_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createElement_String_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createEntityReference_String_
0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_S
tring_String_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_createTextNode_String_0
sh autorun.sh -t org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_0
sh autorun.sh -t org.mozilla.dom.test.ElementImpl_getAttributeNode_String_0
sh autorun.sh -t org.mozilla.dom.test.ElementImpl_getAttribute_String_0
sh autorun.sh -t org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_0
sh autorun.sh -t  org.mozilla.dom.test.ElementImpl_setAttribute_String_String_0
sh autorun.sh -t org.mozilla.dom.test.NodeImpl_appendChild_Node_0
sh autorun.sh -t org.mozilla.dom.test.NodeImpl_equals_Object_0
sh autorun.sh -t org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_0
sh autorun.sh -t org.mozilla.dom.test.NodeImpl_removeChild_Node_0
sh autorun.sh -t org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_0
sh autorun.sh -t org.mozilla.dom.test.NodeImpl_setNodeValue_String_0
sh autorun.sh -t org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_0
Status: NEW → ASSIGNED
the bug is fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified with mozilla Netscape_6_2_RELEASE and blackwood source from trunk on 
Sparc Solaris 2.8.
All tests are passed.
Status: RESOLVED → VERIFIED
QA Contact: leila.garin → avm
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: