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

Fix for #1543 #1905

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Fix for #1543 #1905

merged 2 commits into from
Mar 7, 2024

Conversation

bentoi
Copy link
Member

@bentoi bentoi commented Mar 6, 2024

This PR fixes #1543 for all language mappins except Matlab. I can try to write a patch for Matlab to make it easier to fix it but I won't be able to test.

@bentoi bentoi requested review from pepone and bernardnormier March 6, 2024 11:17
Copy link
Member

@bernardnormier bernardnormier left a comment

Choose a reason for hiding this comment

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

Looks good, much simpler.

I believe you also need to remove the validation for the preserve-slice metadata (unless there is none?), but this can wait until a follow-up PR.

@@ -19,7 +18,7 @@ class ClientPermissionsVerifierI final : public Glacier2::PermissionsVerifier
{
if(current.ctx.find("throw") != current.ctx.end())
{
throw Test::ExtendedPermissionDeniedException("reason");
throw Glacier2::PermissionDeniedException("reason");
Copy link
Member

Choose a reason for hiding this comment

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

For my understanding:
using a derived exception no longer works for this use-case because the intermediary (IceGrid) unmarshals and then remarshals the exception?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right.


private:

::std::shared_ptr<Ice::SlicedData> _slicedData;
Copy link
Member

Choose a reason for hiding this comment

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

minor: use SliceDataPtr like above:

Suggested change
::std::shared_ptr<Ice::SlicedData> _slicedData;
SlicedDataPtr _slicedData;

@bentoi
Copy link
Member Author

bentoi commented Mar 7, 2024

I believe you also need to remove the validation for the preserve-slice metadata (unless there is none?), but this can wait until a follow-up PR.

I couldn't find metadata validation for preserve-slice.

@bentoi bentoi merged commit 3182959 into zeroc-ice:main Mar 7, 2024
23 checks passed
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
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.

Adopt new Slice class format and preservation approach
3 participants