hashtopolis/server

[BUG]: APIv2 including not working correctly

Opened this issue · 1 comments

Version Information

0.14.3

Hashcat

No response

Description

when doing a get many include api call it seems that only the last element will have the inlcude data. Also when multiple elements have the same included data, the included section will have duplicate elements. This should be reduced to only unique values.

For example this api call: http://localhost:8080/api/v2/ui/agents?maxResults=3&include=accessGroups

only the last element have the included accesgroups and the included section will have the same accesgroup three times.

Sounds a little bit like the ManyToMany problem this PR solves: #1115