Uninett / nav

Network Administration Visualized
GNU General Public License v3.0
192 stars 39 forks source link

DataIOExceptions from Netmap when using Windows #75

Closed jmbredal closed 7 years ago

jmbredal commented 7 years ago

Bug 330062 seems to still apply to Windows users, for reasons unknown. The fix for that bug seems to have resolved the issue for Linux users.


Imported from Launchpad using lp2gh.

jmbredal commented 7 years ago

(by mbrekkevold) The code did some convoluted conversion from a bytestream to a character stream, then into a string and then back to a byte stream before the data was fed to Prefuse. Seems the part that converts from string back to bytestream is dependent on the system's default encoding, which may be different on Windows than on other platforms.

My fix is to feed the raw bytestream to Prefuse, avoiding the confusing intermediate steps.

Fix committed and pushed to series/3.5.x: http://metanav.uninett.no/hg/series/3.5.x/rev/2bee8548149b

jmbredal commented 7 years ago

(by klette) The additional steps were a workout for a buggy java-plugin version, but this is much cleaner and forcing people to update their plugins isn't really a bad thing :-)

Thanks for the fix :-)

jmbredal commented 7 years ago

Translated changeset references: http://metanav.uninett.no/hg/series/3.5.x/rev/2bee8548149b: cbd132f17f86cbc52983b631c6e5c62ab6b4eebc