brad-sp / cuckoo-modified

Modified edition of cuckoo
271 stars 100 forks source link

Fix error when filtering API calls by category with empty API filter #111

Closed jgajek closed 9 years ago

jgajek commented 9 years ago

In the Behavioral Analysis tab, when viewing the API calls filtered by category with an empty API filter, the generated URL requests have a double slash at the end (e.g. GET /analysis/filtered/121/536/registry//), which results in a 404 NOT FOUND error from the web server).

KillerInstinct commented 9 years ago

This doesn't happen when using the Django dev server, only when front-ending it with something like Apache/Nginx. I actually fixed this by forcing !null, which doesn't require a change to the view.

I can't find my commit, but I tipped it over to Will as he also experienced this: https://github.com/wmetcalf/cuckoo-modified/commit/5df0543a7336d03277332869a98266ad318310b6

brad-sp commented 9 years ago

Thanks, sorry I thought I had already pulled in KillerInstinct's commit, but it appears that wasn't the case. Please see if the latest version resolves the problem.

jgajek commented 9 years ago

Works great, thanks!