WYAE - FWTOOLS Mailing List Archive


Re: [fwtools] help with fw1r55_to_fwdoc
From:Volker Tanger
Date: Tue, 27 Feb 2007 23:38:21 +0100

Greetings!

On Tue, 27 Feb 2007 11:13:30 -0500
"WISNIEWSKI, DANIEL (ATTSI)"  wrote:

> Can somebody clue me in?  I'm testing the new fwdoc and am getting
> errors
> 
> $home/fw1r55_to_fwdoc.pl --with_implicit_rules \
>  --merge_AI=$home/RTEST/rulebases.fws \
>  --rules=$home/PTEST/anet.W \
>  --objects=$home/RTEST/objects_5_0.C \
>  --verbose \
>   | $home/fwdoc_to_html.py \
>   | $home/fwdoc_to_tables.py \
[...]
> 
> ... It seems everything works fine ( i see all the data ) and then it
> bombs at the very end and nothing is written.
> 
> ...
> ...
> ..
> 
> },
>   "users": { 
>   }
> }
> ' due to: '{'
> Traceback (most recent call last):
>   File "/fwbin/FWDOC/fwdoc_to_tables.py", line 88, in ?
>     fwdoc = json.read(fwdoctxt)
>   File "/var/local/firewall/bin/FWDOC/json.py", line 311, in read
>     return JsonReader().read(s)
>   File "/var/local/firewall/bin/FWDOC/json.py", line 55, in read
>     result = self._read()
>   File "/var/local/firewall/bin/FWDOC/json.py", line 62, in _read
>     raise ReadException, "Nothing to read: '%s'" %
>     self._generator.all()
> json.ReadException: Nothing to read: ''



*sigh*  Another obvious bug I should have caught:
The error is in the creation of the fw1r55_to_fwrules.pl file - an empty
object is not allowed in JSON - and thus the reading routine complains.

Is corrected with the new version.

Thanks for the bug report!

Volker


-- 

Volker Tanger    http://www.wyae.de/volker.tanger/
--------------------------------------------------
volker.tanger@wyae.de              PGP Fingerprint
378A 7DA7 4F20 C2F3 5BCC  8340 7424 6122 BB83 B8CB