Skip to content

Checking-in Assets via API Removes the Item's Asset Name #7270

Closed
@happicamper

Description

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

Describe the bug
I can successfully execute the checkin command via API and displays a nice output of:
{"status":"success","messages":"Asset checked in successfully.","payload":{"asset":"my_monitor"}}%
but it removes the asset's Asset Name which is named as my_monitor before.
To Reproduce
Steps to reproduce the behavior:

  1. Execute command:
    curl --silent --request POST \ --url 'https://my-asset-web.com/api/v1/hardware/'"${assetId}"'/checkin' \ --header 'accept: application/json' \ --header 'authorization: Bearer '"$adminAPI"'' \ --header 'content-type: application/json'

Expected behavior
It does checks in the asset desired but removes the Asset Name.

Screenshots
Before checking in:
Screen Shot 2019-07-18 at 2 49 42 PM
After running the API command via Terminal:
Screen Shot 2019-07-18 at 2 54 37 PM

Server (please complete the following information):

  • Snipe-IT Version: v4.7.5 build 4118 (g03a451240)
  • OS: Docker inside CentOS 7
  • Web Server: Docker
  • PHP Version: 7.1.30-1+ubuntu16.04.1+deb.sury.org+1

Desktop (please complete the following information):

  • OS: MacOS Mojave 10.14.4
  • Browser: Google Chrome
  • Version: 75.0.3770.142

Error Messages

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in storage/logs and your webserver's logs.

Additional context

  • Is this a fresh install or an upgrade? - Docker upgrade
  • What OS and web server you're running Snipe-IT on - Docker Image
  • What method you used to install Snipe-IT - Docker Image
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Add any other context about the problem here.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions