X2Go Bug report logs - #1507
pyhoca-cli exits with success (status code 0) if the remote user does not exist

version graph

Package: pyhoca-cli; Maintainer for pyhoca-cli is X2Go Developers <x2go-dev@lists.x2go.org>; Source for pyhoca-cli is src:pyhoca-cli.

Reported by: "R. Diez" <rdiezmail-2006@yahoo.de>

Date: Mon, 23 Nov 2020 19:20:03 UTC

Severity: normal

Found in version 0.6.1.2

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1507; Package pyhoca-cli. (Mon, 23 Nov 2020 19:20:03 GMT) (full text, mbox, link).


Acknowledgement sent to "R. Diez" <rdiezmail-2006@yahoo.de>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Mon, 23 Nov 2020 19:20:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

From: "R. Diez" <rdiezmail-2006@yahoo.de>
To: submit@bugs.x2go.org
Subject: pyhoca-cli exits with success (status code 0) if the remote user does not exist
Date: Mon, 23 Nov 2020 20:18:04 +0100
Package: pyhoca-cli
Version: 0.6.1.2

If the remote user does not exist, then pyhoca-cli exits with success (exit code 0). The calling script does not know then that the connection has failed.

For scripting purposes, it is important that errors are always signalled with a non-zero exit code.

Example:

$ pyhoca-cli  --server localhost  --username=does-not-exist

pyhoca-cli[97275] NOTICE: preparing requested X2Go session
pyhoca-cli[97275] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[97275] (x2gosessregistry-pylib) NOTICE: registering X2Go session Pyhoca-Client_Session...
pyhoca-cli[97275] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[97275] (x2gocontrolsession-pylib) NOTICE: connecting to [localhost]:22
pyhoca-cli[97275] (PyHocaCLI) WARN: passwordless login for ,,does-not-exist'' failed [SSHException]
pyhoca-cli: error: No existing session

$ echo "Exit status code: $?"
Exit status code: 0

Thanks in advance,
  rdiez


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1507; Package pyhoca-cli. (Mon, 15 Jan 2024 20:50:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Mon, 15 Jan 2024 20:50:02 GMT) (full text, mbox, link).


Message #10 received at 1507@bugs.x2go.org (full text, mbox, reply):

From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 1507@bugs.x2go.org
Subject: Closing...
Date: Mon, 15 Jan 2024 20:49:02 +0000
[Message part 1 (text/plain, inline)]
Control: close -1

Discussion / issue tracking continued at:
https://gitlab.x2go.org/x2go/client/pyhoca-cli/-/issues/1
-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 2 (application/pgp-signature, inline)]

Marked Bug as done Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to 1507-submit@bugs.x2go.org. (Mon, 15 Jan 2024 20:50:02 GMT) (full text, mbox, link).


Notification sent to "R. Diez" <rdiezmail-2006@yahoo.de>:
Bug acknowledged by developer. (Mon, 15 Jan 2024 20:50:02 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.x2go.org> to internal_control@bugs.x2go.org. (Tue, 13 Feb 2024 06:24:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 16:38:38 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.