WYAE - FWTOOLS Mailing List Archive


Troubles with fwtools 0.8.13
From:Stojan Rancic
Date: Thu, 5 Jun 2008 15:03:42 +0200

This is a multipart message in MIME format.
--=_alternative 0047C05CC125745F_=
Content-Type: text/plain; charset="US-ASCII"

Hello,

I have just tried converting CheckpointFW rules to HTML using the latest 
version, but it seems that the FW1r65_to_FWdoc exports an invalid file, 
which the FWdoc_used_Objects or FWdoc_to_HTML  can't parse. The later two 
scripts fail with the following:

Traceback (most recent call last):
  File "./fwdoc_to_html.py", line 46, in ?
    fwdoc = json.read(fwdoctxt)
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 311, in read
    return JsonReader().read(s)
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 55, in read
    result = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 64, in _read
    return self._readObject()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 222, in _readObject
    val = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 66, in _read
    return self._readArray()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 198, in _readArray
    item = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 64, in _read
    return self._readObject()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 222, in _readObject
    val = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 66, in _read
    return self._readArray()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 198, in _readArray
    item = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 81, in _read
    raise ReadException, "Input is not valid JSON: '%s'" % 
self._generator.all()
json.ReadException: Input is not valid JSON: '{ 

.. followed by the whole file. From the short debugging, it seems they 
choke on the following:

        "install_on": [
            {
                "firewall": "ReferenceObject",
                "interface": [ "Any" ],
                "method": "fw1"
            }

.. any idea, what's going on ?

br, Stojan
--=_alternative 0047C05CC125745F_=
Content-Type: text/html; charset="US-ASCII"



Hello,

I have just tried converting CheckpointFW rules to HTML using the latest version, but it seems that the FW1r65_to_FWdoc exports an invalid file, which the FWdoc_used_Objects or FWdoc_to_HTML  can't parse. The later two scripts fail with the following:

Traceback (most recent call last):
  File "./fwdoc_to_html.py", line 46, in ?
    fwdoc = json.read(fwdoctxt)
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 311, in read
    return JsonReader().read(s)
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 55, in read
    result = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 64, in _read
    return self._readObject()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 222, in _readObject
    val = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 66, in _read
    return self._readArray()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 198, in _readArray
    item = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 64, in _read
    return self._readObject()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 222, in _readObject
    val = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 66, in _read
    return self._readArray()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 198, in _readArray
    item = self._read()
  File "/home/stojan/fw/fwdoc_to_html/json.py", line 81, in _read
    raise ReadException, "Input is not valid JSON: '%s'" % self._generator.all()
json.ReadException: Input is not valid JSON: '{

.. followed by the whole file. From the short debugging, it seems they choke on the following:

        "install_on": [
            {
                "firewall": "ReferenceObject",
                "interface": [ "Any" ],
                "method": "fw1"
            }

.. any idea, what's going on ?

br, Stojan --=_alternative 0047C05CC125745F_=--