traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
814 stars 1.13k forks source link

Cant save a once calendar item #1149

Open hunterino opened 1 year ago

hunterino commented 1 year ago

Describe the bug If you create a calendar item that is of type once, it throws a Missing expected token, last token: at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 9] (through reference chain: org.traccar.model.Calendar["data"])

To Reproduce Steps to reproduce the behavior:

  1. Go to create calendar
  2. Click on 'daily'
  3. Press Save
  4. See error

Missing expected token, last token: at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 9] (through reference chain: org.traccar.model.Calendar["data"])

Expected behavior Have a calendar saved.

Desktop (please complete the following information):

tananaev commented 1 year ago

What is the use case for one time calendars?

hunterino commented 1 year ago

My use case was tying a calendar to a geofence, that existed for a 1 week project.

tananaev commented 1 year ago

Can you elaborate? What do you mean by trying? Is that a real production use case?