hassanakbar4 / tractive-test

0 stars 0 forks source link

No output with missing month in date #286

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 9 years ago

component_Version 2 gui resolution_overtaken by events type_defect | by srdonovan@usdonovans.com


When date does not contain a month parameter the xml2rfc tool does the following:

When using frames the following is output:

The file is not there -- check for error messages or you may have clicked reload

When using windows nothing is output.

When writing to a file and empty file is created.


Issue migrated from trac:286 at 2021-10-20 18:18:44 +0500

hassanakbar4 commented 9 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} _uploaded file sample_sparse_date.xml (0.4 KiB)_

test case

hassanakbar4 commented 9 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} commented


FWIW, the v2 behavior matches v1 (TCL).

The XSLT code tries to emit a warning and will continue to process the file.

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed component from Version 2 cli to Version 2 gui

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Replying to [#286 srdonovan@…]:

When date does not contain a month parameter the xml2rfc tool does the following:

When using frames the following is output:

The file is not there -- check for error messages or you may have clicked reload

And the error messages say, if you scroll in the error frame:

WARNING: No DTD given, defaulting to /usr/local/lib/python2.7/dist-packages/xml2rfc/templates/rfc2629.dtd WARNING: Incomplete and out-of date element:

This is followed by an exception; and that will be fixed. However, the major issue here is that the web GUI is hard to interpret.

When using windows nothing is output.

Also an issue with the web GUI :-(

When writing to a file and empty file is created.

Well, this is incomplete. With an out-of-date year, that's what happens. With the current year provided, a text file with the current date is created.

What is the correct action when an out-of-date year is given, and no month or day? I think it should give an error message, not create an exception, and not create a draft (as it would have a completely fictional date for the given year).

hassanakbar4 commented 9 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} commented


I believe a hard error with a clear error message is the best thing to do.