WYAE - FWTOOLS Mailing List Archive
| Re: FW1r65_to_FWdoc (Version 0.8.12)
|
| From: | "Darran Boyd" |
| Date: | Tue, 13 May 2008 17:27:30 +0800
|
------=_Part_8670_263637.1210670850858
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Ok, after several hours of poking around I believe that I found and worked
around the problem. It seems that when the Perl script outputs the NAT rules
it does not conform to the JSON spec, as it omitts the comma between the
"install_on" array elements.
Here are the details of the fwdoc script I used:
File name: fw1r65_to_fwdoc.pl
Version: 0.8.12
Size: 76,643 bytes
Modification required:
Line 1515: Change from $scomma=''; to $scomma=',';
On 5/6/08, Darran Boyd wrote:
>
> Good day,
>
> I've generated output of a R65 rule base using FW1r65_to_FWdoc (Version
> 0.8.12) on Windows.
>
> When I attempt to pipe the output to one of the Python scripts (e.g.
> C:\FW1R65~1>perl fw1r65_to_fwdoc.pl --merge_AI=rulebases_5_0.fws |
> c:\python24\python c:\fw1r65~1\fwdoc_verify.py) I get the following error:
>
>
> Traceback (most recent call last):
> File "C:\fw1r65_to_fwdoc\fwdoc_to_txt.py", line 46, in ?
> fwdoc = json.read(fwdoctxt)
> File "C:\fw1r65_to_fwdoc\json.py", line 310, in read
> return JsonReader().read(s)
> File "C:\fw1r65_to_fwdoc\json.py", line 54, in read
> result = self._read()
> File "C:\fw1r65_to_fwdoc\json.py", line 63, in _read
> return self._readObject()
> File "C:\fw1r65_to_fwdoc\json.py", line 221, in _readObject
> val = self._read()
> File "C:\fw1r65_to_fwdoc\json.py", line 63, in _read
> return self._readObject()
> File "C:\fw1r65_to_fwdoc\json.py", line 221, in _readObject
> val = self._read()
> File "C:\fw1r65_to_fwdoc\json.py", line 80, in _read
> raise ReadException, "Input is not valid JSON: '%s'" %
> self._generator.all()
> json.ReadException: Input is not valid JSON: '{
>
>
>
> The FWDOC_VERIFY.PY script does NOT output the expected "okay" message.
>
> Any thoughts on how I can get this working?
>
> Many Thanks.
>
------=_Part_8670_263637.1210670850858
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Ok, after several hours of poking around I believe that I found and worked around the problem. It seems that when the Perl script outputs the NAT rules it does not conform to the JSON spec, as it omitts the comma between the "install_on" array elements.
Here are the details of the fwdoc script I used:
File name: fw1r65_to_fwdoc.pl
Version: 0.8.12
Size: 76,643 bytes
Modification required:
Line 1515: Change from $scomma=''; to $scomma=',';
On 5/6/08, Darran Boyd <dboyd13@gmail.com> wrote:
Good day,
I've generated output of a R65 rule base using FW1r65_to_FWdoc (Version 0.8.12) on Windows.
When I attempt to pipe the output to one of the Python scripts (e.g. C:\FW1R65~1>perl fw1r65_to_fwdoc.pl --merge_AI=rulebases_5_0.fws | c:\python24\python c:\fw1r65~1\fwdoc_verify.py) I get the following error:
Traceback (most recent call last):
File "C:\fw1r65_to_fwdoc\fwdoc_to_txt.py", line 46, in ?
fwdoc = json.read(fwdoctxt)
File "C:\fw1r65_to_fwdoc\json.py", line 310, in read
return JsonReader().read(s)
File "C:\fw1r65_to_fwdoc\json.py", line 54, in read
result = self._read()
File "C:\fw1r65_to_fwdoc\json.py", line 63, in _read
return self._readObject()
File "C:\fw1r65_to_fwdoc\json.py", line 221, in _readObject
val = self._read()
File "C:\fw1r65_to_fwdoc\json.py", line 63, in _read
return self._readObject()
File "C:\fw1r65_to_fwdoc\json.py", line 221, in _readObject
val = self._read()
File "C:\fw1r65_to_fwdoc\json.py", line 80, in _read
raise ReadException, "Input is not valid JSON: '%s'" % self._generator.all()
json.ReadException: Input is not valid JSON: '{
<IT OUTPUTS THE ENTIRE CONTENTS OF THE FWDOC OUTPUT HERE>
The FWDOC_VERIFY.PY script does NOT output the expected "okay" message.
Any thoughts on how I can get this working?
Many Thanks.
------=_Part_8670_263637.1210670850858--