swri-robotics / bag-database

A server that catalogs bag files and provides a web-based UI for accessing them.
Other
342 stars 71 forks source link

issues when updating tags #179

Open ptulpen opened 2 years ago

ptulpen commented 2 years ago

when updating tags that already exits, the updating completely fails:

c.g.swrirobotics.bags.BagController - Error deserializing bags: com.fasterxml.jackson.databind.JsonMappingException: Already had POJO for id (java.lang.String) [[ObjectId: key=a, type=com.fasterxml.jackson.databind.deser.impl.Prope rtyBasedObjectIdGenerator, scope=java.lang.Object]] (through reference chain: com.github.swrirobotics.support.web.BagList["bags"]->java.util.ArrayList[0]->com.github.s wrirobotics.persistence.Bag["tags"]->java.util.HashSet[2]->com.github.swrirobotics.persistence.Tag["tag"])

I know the documentation states (* New tags will be added, but missing tags will not be removed) but this does not sound to me that using exisiting tags should fail

I see in the webgui, that tags there also cannot be edited there, only deleted

So maybe it would be nice to have this as an additional feature