No metadata available caused by MR!334
Related: https://bugzilla.suse.com/show_bug.cgi?id=1191207
Recently tracker3 info
returns No metadata available for that URI
, when it should show metadata, after revert commit in tracker-miners!334 (merged), it works normally again. I am not familiar with database and SQL so I don't know how to fix it.
Step to reproduce
echo 'Hello tracker!' > ~/newpl.pl
tracker3 info ~/newpl.pl
Expected
[alynx@camelot:~] % tracker3 info newpl.pl
Querying information for entity: 'newpl.pl'
'file:///home/alynx/newpl.pl'
Results:
'nfo:fileLastModified' = '2021-11-05T07:51:03Z'
'nfo:fileName' = 'newpl.pl'
'nfo:fileSize' = '15'
'nfo:belongsToContainer' = 'urn:bnode:b7d448de-5d64-4a06-b7fd-743e93e20ddf'
'nfo:fileCreated' = '2021-11-05T07:51:03Z'
'nfo:fileLastAccessed' = '2021-11-05T07:51:03Z'
'nie:isPartOf' = 'urn:bnode:b7d448de-5d64-4a06-b7fd-743e93e20ddf'
'nie:created' = '2021-11-05T07:51:03Z'
'nie:dataSource' = 'urn:bnode:b7d448de-5d64-4a06-b7fd-743e93e20ddf'
'nie:byteSize' = '15'
'nie:url' = 'file:///home/alynx/newpl.pl'
'http://purl.org/dc/elements/1.1/source' = 'urn:bnode:b7d448de-5d64-4a06-b7fd-743e93e20ddf'
'http://purl.org/dc/elements/1.1/date' = '2021-11-05T07:51:03Z'
'nrl:modified' = '4'
'nrl:added' = '2021-11-05T07:51:03Z'
'rdf:type' = 'http://www.w3.org/2000/01/rdf-schema#Resource'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nie#DataObject'
'rdf:type' = 'http://tracker.api.gnome.org/ontology/v3/nfo#FileDataObject'
Actual
[alynx@camelot:~] % tracker3 info newpl.pl
Querying information for entity: 'newpl.pl'
'file:///home/alynx/newpl.pl'
No metadata available for that URI
Data object “/home/alynx/newpl.pl” currently exists
File is eligible to be indexed