- Mar 16, 2024
-
-
Carlos Garnacho authored
-
- Mar 13, 2024
-
-
Carlos Garnacho authored
core: Drop shared_cache toggle Closes #411 See merge request !660
-
Carlos Garnacho authored
This is unused, firstly always unset then creating TrackerDBManager instances, secondly ineffective since it also needs the SQLITE_OPEN_SHAREDCACHE flag when creating sqlite3 DB instances, which we never pass. Closes: #411
-
- Mar 12, 2024
-
-
-
Carlos Garnacho authored
Extend HTTP endpoint and test coverage See merge request !645
-
Exercise various query methods and error cases.
-
-
-
The 500 error code is meant for internal errors, while request errors should be 400. This is in line with the SPARQL 1.1 Protocol standard: <https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#update-failure>
-
This means the endpoint needs to support POST queries. The SPARQL 1.1 standard says that this MAY be supported: <https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-via-post-direct> The previous method using GET says the same, it MAY be supported: <https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-via-get>
-
-
The ASK query would return a variable name with a load of SQL noise, now the variable is named "result".
-
Debug logging in functional-tests is controlled by setting `TRACKER_DEBUG=tests` in the host environment, this wasn't working due to meson.build clobbering the value.
-
Carlos Garnacho authored
Fixes for some reported errors in Coverity See merge request !659
-
Carlos Garnacho authored
If multiple threads try to iterate the cursor forward, there might be issues if both try to mark the cursor as finished. It's unclear this has actual effect, and it is otoh clear that this is API misuse. Still, protect around this. CID: #1584289
-
Carlos Garnacho authored
Use the return values from json-glib API, like everywhere else. CID: #1584286
-
Carlos Garnacho authored
CIDs: #1515042, #1515043, #1532056, #1584283
-
Carlos Garnacho authored
CID: #1584296
-
Carlos Garnacho authored
In some error paths, the bus_name and object_path variables could be leaked. CID: #1584290
-
Carlos Garnacho authored
The mapped file contents were needlessly duplicated, also port to g_clear_pointer(). CID: #1501123
-
Carlos Garnacho authored
This is already done before. CID: #1530395
-
Carlos Garnacho authored
These cursors can't be NULL after the error checks, don't let Coverity think that they might be. CIDs: #1511359, #1511355
-
Carlos Garnacho authored
As done everywhere else. CID: #1496386
-
Carlos Garnacho authored
It may not happen that we enter in error paths with a GError without a message. Stop accounting for that. CIDs: #1511356, #1511358
-
Carlos Garnacho authored
CIDs: #1501129, #1505931
-
Carlos Garnacho authored
This was initially motivated by Coverity not being happy with us not checking g_unlink() return value. But we don't need/use settings anywhere in the Tracker repository for a long time, we can drop this old piece of dconf/settings manipulation. CID: #1501107
-
Carlos Garnacho authored
Assert for these, to make Coverity happy. CIDs: #1501110, #1501128, #1584277
-
Carlos Garnacho authored
Assert these returning TRUE where expected, in order to avoid Coverity from freaking out. CIDs: #1501101, #1501120, #1501134, #1501137, #1505932, #1505933, #1507949, #1511341, #1518802
-
- Mar 11, 2024
-
-
Carlos Garnacho authored
This is now unused.
-
Carlos Garnacho authored
This is the de-facto default nowadays, we can always set up and use the mutex. Also, this might give Coverity a hint that there's no chances about the flag being on when locking, but off when unlocking. CIDs: #1584275, #1584279, #1584280, #1584284, #1584285, #1584293
-
-
Carlos Garnacho authored
Fixes for "static-scan" build warnings See merge request !658
-
Carlos Garnacho authored
Some CI fixes/improvements See merge request !657
-
- Mar 10, 2024
-
-
-
-
Carlos Garnacho authored
This did not lead to errors since the first connection created held a reference on the file. Still not straightforwardly correct, so move the g_object_unref() call to a point where this variable is no longer used directly. CID: #1501125
-
Carlos Garnacho authored
These variables were already being freed a little bit above in the code. CID: #1501117
-
Carlos Garnacho authored
The TrackerDBManager object is already automatically managed with g_autoptr, these error paths might lead to a double free. CID: #1511357
-
Carlos Garnacho authored
Don't make the static scan build think that this variable might be NULL after test output is collected.
-
Carlos Garnacho authored
Make it clear to the static scan build that this string should never be NULL.
-