Wireshark mailing list archives

tshark Export HTTP Objects with unopenable file names


From: wireshark-users () eldondev com
Date: Mon, 25 Sep 2017 15:35:20 -0400

Hi, I was recently exporting some HTTP objects via 
tshark --export-objects "http,destdir" , and ran into a scenario where the
objects were not written seemingly because the chosen filename for the
object was unopenable (the error message I got was "Export objects
(http): Some files could not be saved"). An strace told me that the
filename was too long. It would be nice if it were possible to simply
truncate the filename (and possibly add a number or some sort onto the
end to avoid overwrites). This seems worth addressing to me, possibly as
some kind of argument to the export command similar to the destdir. 

1) Did I miss(use) existing functionality here, or 
2) Is this something that a patch would be preferred for? Also,
3) I noticed that, despite the error in the output, the exit code was 0,
which was counterintuitive to me.

If no one else wants to pick this up, and a patch would likely be
accepted, it would be greatly appreciated if a pointer to a relevant
part of the source tree could be given.

Thanks!
___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-users
             mailto:wireshark-users-request () wireshark org?subject=unsubscribe

Current thread: