glideinWMS / glideinwms

The glideinWMS Project
http://tinyurl.com/glideinwms
Apache License 2.0
16 stars 46 forks source link

Glidein idtokens generated in the frontend have no newline #240

Open mambelli opened 1 year ago

mambelli commented 1 year ago

Describe the bug the frontend idtokens /var/lib/gwms-frontend/tokens.d/GROUP.ENTRY.idtoken are saved without a newline at the end. This fails read operations in shell, like the one used in httokendecode:

read TOKEN<"TOKENFILE

The Frontend seems to work correctly anyway but would be better to add the newline to make the token files readable by other tools.

To Reproduce Check the files in /var/lib/gwms-frontend/tokens.d/

Expected behavior To be able to run httokendecode /var/lib/gwms-frontend/tokens.d/TOKEN Currently it returns nothing. Fails silently.

Screenshots NA

Info (please complete the following information):

Additional context NA