TheBrusMeister / harviewer

Automatically exported from code.google.com/p/harviewer
0 stars 0 forks source link

NULL strings aren't handled #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a working HAR (e.g. via Firebug/NetExport) and view with validation.
2. verify HAR is parsed/rendered correctly
3. add a string comment manually to a section of the HAR/JSON, e.g. 
    "browser": {
      "name": "Firefox",
      "version": "23.0",
      "comment": "A comment"
    },
4. view the HAR in again
5. verify HAR is parsed/rendered correctly
6. change the the comment string to null
    "browser": {
      "name": "Firefox",
      "version": "23.0",
      "comment": null
    },

What is the expected output? What do you see instead?
Receive error "object value found, but a string is required".  Would not expect 
a null value to be break parsing of HAR.

What version of the product are you using? On what operating system?
Online HAR viewer, 2.0.15.

Please provide any additional information below.

Please attach a HAR file that can be used to reproduce the problem.

Original issue reported on code.google.com by wormyourhonor on 6 Sep 2013 at 2:30

GoogleCodeExporter commented 8 years ago
HAR with a null comment

Original comment by wormyourhonor on 6 Sep 2013 at 2:31

GoogleCodeExporter commented 8 years ago
This is happening for me also, except that my nulls are on the mimeType field.  
I'm using PhantomJS's netsniff.js to generate the .HAR's.  I can force 
rendering by disabling validation, but errorless parsing of these cases would 
be nice.  Thanks for your work!

Original comment by fracture...@gmail.com on 12 Dec 2013 at 8:41

Attachments: