View Issue Details

IDProjectCategoryView StatusLast Update
0008788GNUnetnamestore servicepublic2024-12-09 17:03
Reporterulfvonbelow Assigned Toschanzen Due Date
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86-64OSGuix SystemOS Versiona1d711c92e
Product Version0.21.1 
Target Version0.23.0Fixed in Version0.23.0 
Summary0008788: plugin_namestore_sqlite.c calls GNUNET_NAMESTORE_RecordIterator with new editor hint, not old
Descriptionsrc/include/gnunet_namestore_plugin.h:
... * The record iterator will be called with the old editor hint (if any).

Here is what src/plugin/namestore/plugin_namestore_sqlite.c calls the callback with the output from:
"UPDATE ns098records"
" SET editor_hint=?"
" FROM ns098records AS old_ns098records"
" WHERE ns098records.zone_private_key=? AND ns098records.label=?"
" RETURNING ns098records.uid,ns098records.record_count,ns098records.record_data,ns098records.label,editor_hint "

Here is what https://www.sqlite.org/lang_returning.html has to say about RETURNING:
"For INSERT and UPDATE statements, references to columns in the
 table being modified refer to the value of that column after the change
 has been applied. For DELETE statements, references to columns mean the
 value before the delete occurs."
Steps To ReproduceThis bug isn't currently caught by test_namestore_api_edit_records due to issue 8787, but after that fix has been applied, it will fail any time you run 'make check'.
Additional InformationI don't have an easy fix for this one; all information I can find says that it's going to require two separate statements.
TagsNo tags attached.

Activities

schanzen

2024-08-29 13:03

administrator   ~0023104

Hmm it seems I applied 0008787 but the tests do not fail. I need to investigate this again for 0.22.1

schanzen

2024-08-30 10:21

administrator   ~0023116

The reason why after fixing 8787 this is not happening is because we had to disable the tests since testing API was changed. Certainly the statement looks incorrect.

schanzen

2024-10-29 12:19

administrator   ~0023616

Will not be able to handle this properly until new testing is usable.

schanzen

2024-11-07 10:24

administrator   ~0023672

Fix committed to master branch.

schanzen

2024-12-09 17:03

administrator   ~0023836

Released

Issue History

Date ModifiedUsernameFieldChange
2024-05-03 01:39ulfvonbelowNew Issue
2024-05-05 11:59schanzenAssigned To => schanzen
2024-05-05 11:59schanzenStatusnew => assigned
2024-08-29 13:03schanzenNote Added: 0023104
2024-08-29 13:03schanzenTarget Version => 0.22.1
2024-08-30 10:21schanzenNote Added: 0023116
2024-09-23 12:45schanzenTarget Version0.22.1 => 0.22.2
2024-10-29 12:19schanzenTarget Version0.22.2 => 0.23.0
2024-10-29 12:19schanzenNote Added: 0023616
2024-11-07 10:24schanzen
2024-11-07 10:24schanzenNote Added: 0023672
2024-11-07 10:24schanzenStatusassigned => resolved
2024-11-07 10:24schanzenResolutionopen => fixed
2024-12-09 17:03schanzenFixed in Version => 0.23.0
2024-12-09 17:03schanzenNote Added: 0023836
2024-12-09 17:03schanzenStatusresolved => closed