Closed LIttleAncientForestKami closed 2 months ago
Can you provide a sample HAR that reproduces the issue? This will most likely be addressed with zaproxy/zap-extensions#5250.
Chromium (used to export HAR) 125.0.6422.112 (Official Build) snap (64-bit) Revision e099925e675bbb19c42822548f5175ab03a36a32-refs/branch-heads/6422_76@{#3} OS Linux JavaScript V8 12.5.227.9 User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Firefox (used to import HAR): 126.0 (64 bits), May 14th, via snap.
HAR was done via Chromium, can be imported by it back or by newest Firefox. Will try to add a sample.
Will try to add a sample.
Thanks @LIttleAncientForestKami I'd like to be sure that it succeeds with the changes I'm working on in zaproxy/zap-extensions#5250
peteris.rocks.har, obtained by visiting https://peteris.rocks/blog/htop/ with Chromium (and with Network tab opened in dev tools)
OK, will need to post HAR file in some other manner as it doesn't allow it's upload saying it's unsupported file type.
Change the extension to .txt
.
peteris.rocks.har.txt attempt to paste failed, upload as txt seems to be working
and thanks for lighning quick responses and navigation @thc202
This is great. Using the code in the PR.
httpVersion
as http/2.0
instead of http/2
so I've updated the code to handle that.
Describe the bug
Possibly the fault might be in the underlying library but I also wish to point out that UI behaves as it nothing has happened. I did the import twice, for I initially thought that I have perhaps misclicked or something. Logs say that NPE happens. Not sure if this happens for every HAR file or just mine, but I tried a couple.
Steps to reproduce the behavior
Expected behavior
HAR files is imported or a clear error message tells me what's wrong and if I can do something about that HAR file to have it imported.
Software versions
ZAP 2.15.0, via snap list. zaproxy 2.15.0 32 latest/stable psiinon classic
Java, via java --version: openjdk 11.0.12 2021-07-20 OpenJDK Runtime Environment 18.9 (build 11.0.12+7) OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode)
Ubuntu via inxi: Host: [redacted] Kernel: 6.5.0-35-generic x86_64 bits: 64 compiler: N/A Desktop: GNOME 42.9 (Wayland) tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 42.0 Distro: Ubuntu 22.04.4 LTS (Jammy Jellyfish)
Screenshots
No response
Errors from the zap.log file
Additional context
HAR was done via Chromium, can be imported by it back or by newest Firefox.
Would you like to help fix this issue?