Skip to content

Commit

Permalink
dcap: always set Subject when talking to PnfsManager
Browse files Browse the repository at this point in the history
EGI-SVG-2020-16939

Motivation:
The door should always set user subject when talks to PnfsManager
(unless all permission checks done locally)

Modification:
Update PnfsSessionHandler#doLogin to set always set the subject
used by PnfsHandler

Result:
PnfsManager can perform full permission check

target: master, 7.0, 6.2, 6.1, 6.0, 5.2
Requires-notes: yes
Requires-book: no
  • Loading branch information
kofemann committed Nov 16, 2020
1 parent 4387542 commit 731146d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,10 +1037,8 @@ protected void doLogin()
{
super.doLogin();
_pnfs = new PnfsHandler(_cell, _settings.getPnfsManager());
if (_isUrl || _settings.isAuthorizationRequired()) {
_pnfs.setSubject(_subject);
_pnfs.setRestriction(_authz);
}
_pnfs.setSubject(_subject);
_pnfs.setRestriction(_authz);
}

@Override
Expand Down

0 comments on commit 731146d

Please sign in to comment.