traccar-web icon indicating copy to clipboard operation
traccar-web copied to clipboard

Cant save a once calendar item

Open hunterino opened this issue 1 year ago • 3 comments

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):

  • OS: MAC
  • Browser [CHROME
  • Version of traccar - 3.8

hunterino avatar Jul 11 '23 17:07 hunterino

What is the use case for one time calendars?

tananaev avatar Jul 11 '23 20:07 tananaev

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

hunterino avatar Aug 15 '23 17:08 hunterino

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

tananaev avatar Aug 15 '23 17:08 tananaev