OpenTAKServer icon indicating copy to clipboard operation
OpenTAKServer copied to clipboard

Moving a marker in a datasync feed shows an error notification

Open jakobbuis opened this issue 1 year ago • 0 comments

Steps to reproduce

  1. Create a mission named "test" in the admin panel with default role subscriber, no password, with another callsign -- not yours -- as the owner.
  2. Open ATAK with Data sync plugin
  3. Connect to OTS
  4. Subscribe to feed
  5. Place a marker called "Incident Command Post"
  6. Place a second marker called "EMS Staging"
  7. Lasso-select both markers and send them to the test feed.
  8. Long-press the EMS Staging marker to initiate the move; move the marker somewhere else.
  9. Select OK in the "Publish Content to Feeds" pop-up.

Expected

marker to be moved, and a notification to say it was successfully moved.

Happened

  • the marker is moved on the local map
  • a notification is shown saying "publishing EMS Staging to https://example.com"
  • after a short while, the notification changes to "failed to publish EMS staging to https://example.com"

Remarks

It appears the server does get the marker. There is a valid COT message in the server log (with debug on):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<event version="2.0" uid="eb6f62b0-916b-4d8d-82c5-bb8db8ec4d54" type="a-f-G"
    time="2025-01-02T14:05:22.641Z" start="2025-01-02T14:05:22.641Z"
    stale="2026-01-02T14:05:22.641Z" how="h-g-i-g-o" access="Undefined">
    <point lat="52.0101887" lon="4.3376216" hae="44.6" ce="9999999.0" le="9999999.0" />
    <detail>
        <status readiness="true" />
        <archive />
        <link uid="ANDROID-84b12a7a33bd270f" production_time="2025-01-02T14:05:22.641Z"
            type="a-f-G-U-C" parent_callsign="KILLER" relation="p-p" />
        <contact callsign="EMS staging" />
        <remarks />
        <color argb="-1" />
        <usericon iconsetpath="COT_MAPPING_2525C/a-f/a-f-G" />
        <archive />
        <precisionlocation altsrc="SRTM1" />
        <marti>
            <dest mission="test" />
        </marti>
    </detail>
</event>

After you do a full sync of the feed, the marker stays in place too on the client. And I can see the marker animate to the new location on the OTS admin panel.

I think the ATAK client is expecting some kind of confirmation message, which it doesn't get.

jakobbuis avatar Jan 02 '25 14:01 jakobbuis