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

[Backport release-3_22] Bugfix gh5122 mergefeature fid crash #51386

Closed
wants to merge 4 commits into from

Conversation

qgis-bot
Copy link
Collaborator

@qgis-bot qgis-bot commented Jan 6, 2023

Backport #51125
Authored by: @elpaso

@github-actions github-actions bot added this to the 3.23.0 milestone Jan 6, 2023
QgsFeatureRequest request;
request.setFlags( QgsFeatureRequest::Flag::NoGeometry );
// Handle multi pks
if ( vl->dataProvider()->pkAttributeIndexes().count() > 1 && vl->dataProvider()->pkAttributeIndexes().count() <= attrs.count() )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elpaso just noticing that at lines 10417 and 10420 vl->dataProvider() is checked for null. So for consistency this should also be tested here (or the previous tests are useless)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @elpaso -- any chance we can get this one merged before the final 3.22 release?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @domi4484 what's the status of this? Have you fixed it in the proper way and backported already or we have to backport this (which was intended as a temporary patch while we are waiting for a proper fix?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elpaso just noticing that at lines 10417 and 10420 vl->dataProvider() is checked for null. So for consistency this should also be tested here (or the previous tests are useless)

Done (even if I believe that if data provider is null this method should exit much earlier).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elpaso I have a pr open for that #51456.
I should have it ready soon but probably not today. Could we merge this so afterward there will be some more time to test my changes before the next point release?

@github-actions
Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added stale Uh oh! Seems this work is abandoned, and the PR is about to close. and removed stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Jan 21, 2023
@elpaso elpaso enabled auto-merge January 27, 2023 09:08
auto-merge was automatically disabled January 30, 2023 00:29

Pull request was closed

@nyalldawson nyalldawson deleted the backport-51125-to-release-3_22 branch January 30, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants