tectiv3 / standardfile

Standard File Server, Go Implementation
MIT License
99 stars 13 forks source link

Notes won't sync with server on armv7 #13

Closed GarrisonBaird closed 5 years ago

GarrisonBaird commented 5 years ago
Started StandardFile Server 0.3.2
Running on port 8888
Token is valid, claims:  &{[..uuid..] [...] { 0  1540571972  0 }}
Request: {[] [..sync_token..]  150}
Get items
loadItemsOlder
strconv.Atoi: parsing "1540572057139524600": value out of range
Save incoming items {[] [..sync_token..]  150}
Response: {
  "retrieved_items": [],
  "saved_items": [],
  "unsaved": [],
  "sync_token": "[..sync_token..]"
}
 202 [POST] "/api/items/sync" 85.895947ms 96

standardfile_0.3.2_linux_arm7.tar.gz on Linux raspberrypi 4.14.50-v7 Tested on latest Android, iOS and MacOS official clients. All notes will be downloaded after logging in, then they won't get synchronized anymore, just like it's always offline. Logs always repeats like this.

Everything works fine when using standardfile_0.3.2_linux_64-bit.tar.gz, there's no strconv.Atoi: parsing "1540572057139524600": value out of range in the log, I also can see new changes appear in the log.

GarrisonBaird commented 5 years ago

Probably an integer overflow on 32-bit system

tectiv3 commented 5 years ago

Yeah.. Thanks. I'll look into it.

tectiv3 commented 5 years ago

@GarrisonBaird should be fixed in latest release =)