Dump in ZSAPLINK->GETOBJECTINFOFROMIXMLDOC
If an invalid file ( Binary stream) is passed to this method we'll encounter a dump. Reason:
The variable rootNode will be unbound if no correct XML was passed. The following "->GET_NAME" will now dump with CX_SY_REF_IS_INITIAL
This should be prevented by a try-catch-block or by checking if rootNode is bound and an intentional raise of ZCX_SAPLINK.
rootNode ?= ixmlDocument->GET_ROOT_ELEMENT( ).
* get object type
objTypeName = rootNode->GET_NAME( ).
The variable rootNode will be unbound if no correct XML was passed. The following "->GET_NAME" will now dump with CX_SY_REF_IS_INITIAL
This should be prevented by a try-catch-block or by checking if rootNode is bound and an intentional raise of ZCX_SAPLINK.
Leave a comment
on 2013-08-15 13:48 *
By gregor.wolf
If you have time please go ahead and fix it.
on 2013-08-16 14:41 *
By Stefan Schmöcker
(In revision:386) Set to fixed #246
Added raise-clause when getting passed invalid files,
Changed Report ZSAPLINK to inform of corrupt invalid files and added returncode 4 when reading a file is unsuccessful to prevent a dump.
Added raise-clause when getting passed invalid files,
Changed Report ZSAPLINK to inform of corrupt invalid files and added returncode 4 when reading a file is unsuccessful to prevent a dump.
on 2013-08-16 14:42 *
By Stefan Schmöcker
wrong status "fixed" - should have been "ready to test"