INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: [FIXED] Add a Busy response to Web Service for Handheld Sync call  (Read 560 times)

89ZEF

  • Recent member
  • *
  • Posts: 40

MCWS/v1/Handheld/Sync
Would it be possible to add a busy response for the handheld sync call on the web service API?

There is a scenario where an ongoing sync would be stopped if a new request kicks in.
A "Busy" flag would be handy to avoid stopping a sync in progress.
It would also let the caller know when the job is done as the response status switches from "OK" to "Failure" (would become "Busy" into "Failure")

Related topic:
https://yabb.jriver.com/interact/index.php?topic=84928.0

tested in MC24linux, MC25mac0.13. supposedly same behavior in win
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: Add a Busy response to Web Service for Handheld Sync call
« Reply #1 on: March 25, 2019, 08:33:16 am »

For the next build we'll try this:
Changed: If a handheld is uploading, a call to MCWS/v1/Handheld/Sync will just return that the device is busy.
Logged
Matt Ashland, JRiver Media Center

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: Add a Busy response to Web Service for Handheld Sync call
« Reply #2 on: March 25, 2019, 01:27:36 pm »

Awesome!
Can't wait to do some testing :)
Logged

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: Add a Busy response to Web Service for Handheld Sync call
« Reply #3 on: March 28, 2019, 08:48:34 am »

The issue seems to be addressed on version 25.0.16. I tested only with Debian 9.

Got the following return when calling during an ongoing sync:
Code: [Select]
<Response Status="Failure" Information="The device is already uploading."/>

Thanks to the dev team for the quick fix ;)
Logged
Pages: [1]   Go Up