Duplicated 'size' field in JSON output

Found a bug in "Everything"? report it here
linuxmant
Posts: 1
Joined: Thu Oct 26, 2017 2:57 am

Duplicated 'size' field in JSON output

Postby linuxmant » Thu Oct 26, 2017 3:21 am

Hello, I'm trying to automate the download of a folder using everything but when I get the response from the HTTP server after calling the url for a folder, I get "file" items with two 'size' fields, one is empty and the other has the actual size of the file.
Also the query string parameters for size and date created don't seem to work, I still get those fields in the Json response

Sample call:
'http://localhost/J%3A/My%20Recordings?j=1&path_column=1&size_column'

Response:

Code: Select all

{
   "results": [{
      "type": "folder",
      "name": "MBHBA-music_data",
      "size": "",
      "date_modified": "131253694229441539"
   }, {
      "type": "file",
      "name": "MBHBA-music.aup",
      "size": "",            <<------------ invalid json
      "size": "5205",
      "date_modified": "131253707813107688"
   }]
}


Thanks for the awesome app.

void
Site Admin
Posts: 3607
Joined: Fri Oct 16, 2009 11:31 pm

Re: Duplicated 'size' field in JSON output

Postby void » Thu Oct 26, 2017 9:58 am

Thanks for the bug report.

Everything is sending the size twice when sorting the results by anything other than name ascending.

The first size: is always blank.

I've fixed the issue for the next release of Everything.
For now, please sort results by name.

void
Site Admin
Posts: 3607
Joined: Fri Oct 16, 2009 11:31 pm

Re: Duplicated 'size' field in JSON output

Postby void » Fri Oct 27, 2017 12:13 am



Return to “Bug report”