Print

Print


  Branch: refs/heads/master
  Home:   https://github.com/xrootd/xrootd
  Commit: 73c1b8cdebaa5ec61861e02f706a668f64a96c5c
      https://github.com/xrootd/xrootd/commit/73c1b8cdebaa5ec61861e02f706a668f64a96c5c
  Author: Elvin Sindrilaru <[log in to unmask]>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M src/XrdSciTokens/XrdSciTokensAccess.cc

  Log Message:
  -----------
  [XrdSciTokens] Avoid double slashes in the final path rule that can result from
concatenating the base path with a path from a name_mapfile rule.

Exmaple:
/etc/xrootd/scitokens.cfg
-------------------------
...
base_path=/
name_mapfile=/etc/xrootd/mapfile.json
...

/etc/xrootd/mapfile.json
-------------------------
[{"sub": "abbaabba", "path":/some/path", "response": "someuser"}]

The resulting rule against which the maching will be attempeted will use the path
"//some/path" which will will never match a legitimate path.


  Commit: 4cc4f321ea5ac8616010f69e21f688c649399e07
      https://github.com/xrootd/xrootd/commit/4cc4f321ea5ac8616010f69e21f688c649399e07
  Author: Andrew Hanushevsky <[log in to unmask]>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M src/XrdSciTokens/XrdSciTokensAccess.cc

  Log Message:
  -----------
  Merge pull request #1568 from esindril/scitokens_fix_double_slash

[XrdSciTokens] Avoid double slashes in the final path rule that can r…


Compare: https://github.com/xrootd/xrootd/compare/737c9a465e9e...4cc4f321ea5a

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1