Wireshark-bugs: [Wireshark-bugs] [Bug 11136] New: Unable to create filters after reading the "pr

Date: Wed, 22 Apr 2015 05:08:27 +0000
Bug ID 11136
Summary Unable to create filters after reading the "preference" using lua API.
Product Wireshark
Version 1.12.4
Hardware x86
OS Windows 7
Status UNCONFIRMED
Severity Major
Priority Low
Component Dissection engine (libwireshark)
Assignee [email protected]
Reporter [email protected]

Created attachment 13568 [details]
Show the preference, ie the path to the xml file

Build Information:
Version 1.12.4 (v1.12.4-0-gb4861da from master-1.12)

Copyright 1998-2015 Gerald Combs <[email protected]> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (32-bit) with GTK+ 2.24.23, with Cairo 1.10.2, with Pango 1.34.0, with
GLib 2.38.0, with WinPcap (4_1_3), with libz 1.2.5, with SMI 0.4.8, with c-ares
1.9.1, with Lua 5.2, without Python, with GnuTLS 3.2.15, with Gcrypt 1.6.2,
with
MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Mar  4 2015), with
AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with WinPcap version
4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 3.2.15, Gcrypt 1.6.2, without AirPcap.
       Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, with 3977MB of physical
memory.


Built using Microsoft Visual C++ 10.0 build 40219

Wireshark is Open Source Software released under the GNU General Public
License.

Check the man page and http://www.wireshark.org for more information.
--
Unable to create filters after reading the "preference" using lua API.
Is it according the design that the filter creation should be avoided or
refused after initialization of dissectors?Unfortunately LUA API doesnt give an
informative error on this, but when i do debug, i can see a return value of
-2(return value of protoField.new()

I have an XML file, whose path is provided at run time in the preferences.
I try to read the xml file and create new filters based on the information.
But i cant see those filters in the filer UI, and there is error prompted by
lua, but could see a return value of -2, while debuging

Bug validation:
I tried to read the xml file before setting the preferences and create filters,
it was working.

the attchment shows a simple preference ie UI to enter the path to the xml
file, there is no problem with this feature


You are receiving this mail because:
  • You are watching all bug changes.