Opened 8 years ago

Closed 8 years ago

#14735 closed defect (wontfix)

API generator does not catch errors

Reported by: fbest Owned by: dante
Priority: undecided Milestone: tbd
Component: Doc parser Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:

Description

the PHP script doesn't check if it can create the .xml outputfile:

PHP Warning: touch(): Unable to create file cache/../../../../../root/sandbox/api/umc.xml because No such file or directory in /usr/share/dojo/util/docscripts/lib/generator/file/Serializer.php on line 23

Warning: touch(): Unable to create file cache/../../../../../root/sandbox/api/umc.xml because No such file or directory in /usr/share/dojo/util/docscripts/lib/generator/file/Serializer.php on line 23 PHP Warning: fopen(cache/../../../../../root/sandbox/api/umc.xml): failed to open stream: No such file or directory in /usr/share/dojo/util/docscripts/lib/generator/file/Serializer.php on line 24

Warning: fopen(cache/../../../../../root/sandbox/api/umc.xml): failed to open stream: No such file or directory in /usr/share/dojo/util/docscripts/lib/generator/file/Serializer.php on line 24

in construct is no check if false !== fopen()

Warning: stream_get_line() expects parameter 1 to be resource, boolean given in /usr/share/dojo/util/docscripts/lib/generator/file/Serializer.php on line 43 PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/share/dojo/util/docscripts/lib/generator/file/Serializer.php on line 42

Change History (2)

comment:1 Changed 8 years ago by bill

Component: DocumentationDoc parser
Owner: set to dante
Status: newassigned

comment:2 Changed 8 years ago by bill

Resolution: wontfix
Status: assignedclosed

Closing since Colin is completely rewriting the doc parser.

Note: See TracTickets for help on using tickets.