Skip to content

Fixed CORE-5823: No permission for SELECT access to blob field in stored procedure. And CORE-5841: No permission for SELECT access to TABLE PLG$SRP in newer snapshot. #162

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

Merged
merged 3 commits into from
Sep 12, 2018

Conversation

dmitry-starodubov
Copy link
Collaborator

No description provided.

…red procedure.

And CORE-5841: No permission for SELECT access to TABLE PLG$SRP in newer snapshot.
src/jrd/tra.cpp Outdated
tra_fetched_blobs.add(*blob_id);
tdbb->tdbb_status_vector->clearException();
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Why not use switch() here instead if / else if ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did not notice this when reworked the logic.

src/jrd/tra.cpp Outdated
{
if (tdbb->tdbb_status_vector->getErrors()[1] != isc_no_priv)
throw;

Copy link
Member

Choose a reason for hiding this comment

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

Should we check catched exception here, not tdbb_status_vector ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, I will fix it.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, but it seems not enough - few lines below you clear tdbb_status_vector.
It could clear some previous error\warning.
Usually, if code handle exception and not re-throw it, it set temporary status-vector to not overwrite tdbb's one.

@AlexPeshkoff
Copy link
Member

Does anyone see any problems preventing to merge this PR? I suggest to merge it.

@dyemanov
Copy link
Member

I don't mind merging it.

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.

4 participants