Closed MirisWisdom closed 4 years ago
The night's long, and the hair's grey. The cause? Tags referencing notes without any UUIDs:
{
"uuid": "660f566e-3a95-4f6d-8713-9df1df8e07ab",
"content_type": "Tag",
"created_at": "2020-03-16T18:47:44.618Z",
"updated_at": "2020-04-06T18:25:11.761Z",
"content": {
"title": "notes.exercise",
"references": [
{
"uuid": "301db4ed-57d7-4265-b95a-adaa63e68546",
"content_type": "Note"
},
{
"content_type": "Note" //THIS.GUY.HERE.LACKS.AN.UUID
}
],
"appData": {
"org.standardnotes.sn": {
"client_updated_at": "1970-01-01T00:00:00.000Z"
}
}
}
},
The solution is to remove members of a tag's references
property which lack an UUID.
Thank you for your investigation!
@mobitar any idea how a note reference could end up lacking a UUID? How do the official clients handle this?
Problem
Some of the directories in
~/notes/tags
aren't recognised as directories (or even files). They show up when invokingls -l
, albeit with no form of metadata attached to them:Notice the question marks and
cannot access [...] no such file or directory
errors.Tags show up and work absolutely fine in the regular SN client, even after clearing the data and importing a backup.