Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Being solid against field names variation in expressions on WFS #33266

Merged
merged 1 commit into from Dec 11, 2019

Conversation

signedav
Copy link
Contributor

@signedav signedav commented Dec 6, 2019

When an expression had an alias or a field name written upper-/lowercase then it has not been able to map the cached spatialite field in QgsBackgroundCachedFeatureIterator::buildRequestCache, what resulted in a crash.

Since we get the field name used for the mapping of the cached field with lookupField() it works with expressions containing aliases and case intensive written field names.

… the field name

since then would be aliases and upper-/lower case written fieldnames be accepted in
extensions and avoid a crash in getSpatialiteFieldNameFromUserVisibleName
@signedav signedav changed the title Avoid crash by getting field names with lookupField on expressions Being solid against field names variation in expressions on WFS Dec 6, 2019
@signedav signedav requested a review from rouault December 6, 2019 13:29
@signedav signedav added Bug Either a bug report, or a bug fix. Let's hope for the latter! Needs Backporting labels Dec 6, 2019
@m-kuhn m-kuhn closed this Dec 7, 2019
@m-kuhn m-kuhn reopened this Dec 7, 2019
@m-kuhn
Copy link
Member

m-kuhn commented Dec 9, 2019

@rouault does this look good to you?

@m-kuhn
Copy link
Member

m-kuhn commented Dec 11, 2019

Since this fixes a crash, I'll merge it.
@rouault if this finds you later, a look would still be appreciated.
@signedav can you prepare a backport?

@m-kuhn m-kuhn merged commit f597f72 into qgis:master Dec 11, 2019
@signedav
Copy link
Contributor Author

@m-kuhn I think this has not been an issue on 3.10 since it used QgsWFSFeatureIterator directly. Or do I miss something?

@m-kuhn
Copy link
Member

m-kuhn commented Dec 12, 2019

Oh right, sorry for the noise
#32262 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants