Home Help Center

Glacier2::PermissionsVerifier limitation - ?

allroallro Member Alex LeidermanOrganization: Cell2BetProject: Management Server
Hi,

In my implementation of checkPermissions I have to return an exact reason of failure. The only way I can do it now is to serialize my reason info (that may be quite complex) into reason output string parameter and make the client de-serialize it. The process is very error-prone...

It would be more elegant to allow a custom exception derived from Glacier2::PermissionDeniedException to be thrown from checkPermissions. Currently it's impossible because all exceptions are catched by Glacier2 and replaced by Glacier2::PermissionDeniedException("internal server error").

Please advice - probably I miss something :)

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Right now I'm afraid you don't really have any other options than serializing your information into the reason string. We'll consider your suggestion for a future release however.

    Cheers,
    Benoit.
  • allroallro Member Alex LeidermanOrganization: Cell2BetProject: Management Server
    Hi Benoit,

    Thank you for reply.

    Hopefully it will be useful for other ICE users.
  • joshmoorejoshmoore GermanyMember Josh MooreOrganization: Glencoe Software, Inc.Project: OME, http://openmicroscopy.org
    +1 (vote)
    ~Josh (extra characters to make vBulletin happy)
Sign In or Register to comment.