Bug report #14727
offline edits update wrong feature
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | C++ plugins/Offline editing | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | Yes | Copied to github as #: | 22686 |
Description
Steps to reproduce:
add PostGIS vector layer that has multiple features
Database > Offline Editing > Convert to offline project
modify one of the feature attributes
Database > Offline Editing > Synchronize
wrong feature could potentially be modified
Additional info :
does not work after QGIS 2.6.1
offline sqlite log_fids table contains different offline_fid in 2.6.1 vs 2.14.1
in 2.6.1 the offline_fid is the same as the layer table rowid, however in 2.14.1 it is not
Associated revisions
Fix wrong mapping of feature ids in offline editing
Fix #14727
Fix wrong mapping of feature ids in offline editing
Fix #14727
History
#1
Updated by Dale Renton over 8 years ago
Additional info (changed) :
does not work after QGIS 2.6.1
offline sqlite log_feature_updates table contains different fid in 2.6.1 vs 2.14.1
in 2.6.1 the fid is the same as the layer table rowid and the log_fids offline_fid
in 2.14.1 the fid is the same as the layer table rowid but the log_fids table offline_fid is different
#2
Updated by Matthias Kuhn about 8 years ago
- Status changed from Open to Feedback
What kind of primary key does your original table have?
#3
Updated by Dale Renton about 8 years ago
auto increment integer
#4
Updated by Giovanni Manghi about 8 years ago
- Target version set to Version 2.16
- Status changed from Feedback to Open
#5 Updated by Anonymous about 8 years ago
- Status changed from Open to Closed
Fixed in changeset 216623ffe02f16e98db63799c10da1f7063e2537.