snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

API Result Bug

Open Oscillometer opened this issue 6 years ago • 3 comments

Please confirm you have done the following before posting your bug report:

Describe the bug When performing a /statuslabels/:id/assetlist API call all assets return NULL in the assiged_to field. This occurs on all assets, but the correct value is returned when any GET asset API calls.

To Reproduce Steps to reproduce the behavior: Perform /statuslabels/:id/assetlist API call for any status label that contains assets which are checked out to someone

All assets will return NULL in the assigned_to field even after validating asset is correctly assigned

Expected behavior Receive the same info from /statuslabels/:id/assetlist API call as is provided from any of the GET asset api calls.

Screenshots Below is the broken API results from the /statuslabels/:id/assetlist API call Broken

Below is the expected API results, as retrieved from /hardware/bytag/:asset_tag Expected

Server (please complete the following information): Server is hosted and maintained by Snipe directly, exact info not known.

Oscillometer avatar Aug 17 '20 23:08 Oscillometer

I can't reproduce this locally on master...

Screen Shot 2020-08-25 at 8 29 10 PM

snipe avatar Aug 26 '20 03:08 snipe

Actually, I just realized I misread your issue. Let me check into this.

snipe avatar Aug 26 '20 03:08 snipe

This is now fixed on master and will be in the next tagged release.

snipe avatar Aug 26 '20 03:08 snipe