Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Unsuccessful stat on filename containing newline #36

Closed
edbmnt opened this issue Feb 6, 2015 · 1 comment
Closed

Unsuccessful stat on filename containing newline #36

edbmnt opened this issue Feb 6, 2015 · 1 comment

Comments

@edbmnt
Copy link
Contributor

edbmnt commented Feb 6, 2015

Example:

$ sudo -u nagios ./plugin-dir/check_rhev3.pl -H my-very-long-rhev-manager-hostname -f /etc/check_rhev/check_rhev3.cfg -D foobar
Unsuccessful stat on filename containing newline at ./plugin-dir/check_rhev3.pl line 1678.
RHEV UNKNOWN: Datacenters foobar not found.
$ 

It appears to be related to the way cookie filename is built. It may include newline when hostname combined with username@domain is too long.

$ echo my-very-long-rhev-manager-hostname-myusername@my.domaine.com | base64
bXktdmVyeS1sb25nLXJoZXYtbWFuYWdlci1ob3N0bmFtZS1teXVzZXJuYW1lQG15LmRvbWFpbmUu
Y29tCg==
$ 

Regards,
Eric

@scrat14 scrat14 closed this as completed in e538b7a Feb 7, 2015
scrat14 added a commit that referenced this issue Feb 7, 2015
Avoid newline in cookie filename (fixes #36)
@scrat14
Copy link
Member

scrat14 commented Feb 7, 2015

Thanks a lot for reporting this bug and the fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants