From unknown Fri Apr 17 21:42:41 2026
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.x2go.org
From: owner@bugs.x2go.org (X2Go Bug Tracking System)
Subject: Bug#1445 closed by X2Go Release Manager X2Go Release Manager
 <git-admin@x2go.org> (X2Go issue (in src:pyhoca-cli) has been marked as
 closed)
Message-ID: <handler.1445.c.169268710328107.notifdone@bugs.x2go.org>
References: <20230822065131.4EA7B5DAFB@ymir.das-netzwerkteam.de>
X-X2go-PR-Keywords: pending
X-X2go-PR-Message: they-closed 1445
X-X2go-PR-Package: pyhoca-cli
X-X2go-PR-Source: pyhoca-cli
Date: Tue, 22 Aug 2023 06:55:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1692687302-29100-0"

This is a multi-part message in MIME format...

------------=_1692687302-29100-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

This is an automatic notification regarding your Bug report
which was filed against the pyhoca-cli package:

#1445: pyhoca-cli fails to connect to suspended x2go session

It has been closed by X2Go Release Manager X2Go Release Manager <git-admin@=
x2go.org>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact X2Go Release Manager X=
2Go Release Manager <git-admin@x2go.org> by
replying to this email.


--=20
X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems

------------=_1692687302-29100-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at control) by bugs.x2go.org; 22 Aug 2023 06:51:43 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,NO_RELAYS,
	URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2
Received: by ymir.das-netzwerkteam.de (Postfix, from userid 1005)
	id 4EA7B5DAFB; Tue, 22 Aug 2023 08:51:31 +0200 (CEST)
From: =?utf-8?q?X2Go_Release_Manager?= X2Go Release Manager <git-admin@x2go.org>
To: 1445-submitter@bugs.x2go.org
Cc: control@bugs.x2go.org, 1445@bugs.x2go.org
Subject: X2Go issue (in src:pyhoca-cli) has been marked as closed
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer: https://code.x2go.org/gitweb?p=maintenancescripts.git;a=blob;f=git/hooks/x2go-post-receive-close-bugs
Message-Id: <20230822065131.4EA7B5DAFB@ymir.das-netzwerkteam.de>
Date: Tue, 22 Aug 2023 08:51:31 +0200 (CEST)

close #1445
thanks

Hello,

we are very hopeful that X2Go issue #1445 reported by you
has been resolved in the new release (0.6.1.3) of the
X2Go source project »src:pyhoca-cli«.

You can view the complete changelog entry of src:pyhoca-cli (0.6.1.3)
below, and you can use the following link to view all the code changes
between this and the last release of src:pyhoca-cli.

    https://code.x2go.org/gitweb?p=pyhoca-cli.git;a=commitdiff;h=c6245eb5861acd4fa5ecedc9994b3549831b6b70;hp=071bd72d80d20a325613e38ed6296d2788dd65e5

If you feel that the issue has not been resolved satisfyingly, feel
free to reopen this bug report or submit a follow-up report with
further observations described based on the new released version
of src:pyhoca-cli.

Thanks a lot for contributing to X2Go!!!

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
X2Go Component: src:pyhoca-cli
Version: 0.6.1.3-0x2go1
Status: RELEASE
Timestamp: 1692686744
Date: Tue, 22 Aug 2023 08:45:44 +0200
Fixes: 1445
Changes:
 pyhoca-cli (0.6.1.3-0x2go1) RELEASED; urgency=medium
 .
   [ Mike Gabriel ]
   * New upstream release (0.6.1.3):
     - pyhoca/cli/frontend.py: Fix reference before assignment error in
       resume_session() method. Thanks to Randy Goldenberg for spotting
       this. (Fixes: #1445).
     - pyhoca-cli: Add cmdline parameter --dpi.
     - pyhoca-cli: Do input check on value passed in via the --link option.
     - pyhoca-cli: Add cmdline parameter --clipboard-mode.
     - pyhoca-cli: Follow-up fix for --dpi switch. Fix input value verification.
       Only demand an integer, if args.dpi is set to something else than None.
     - pyhoca-cli: Add --kdrive cmdline option.
     - pyhoca-cli.1 man page: Drop -d from --quiet documentation line.
     - Move --dpi cmdline option from X2Go options to NX options.
     - pyhoca-cli: Add cmdline option --list-cmdline-features. Required for
       Remmina X2Go Plugin.
     - pyhoca-cli: Write program version to STDOUT (not STDERR).
     - man/man1/pyhoca-cli.1: Add documentation for --list-cmdline-features.
     - pyhoca-cli: Don't try to immitate look_for_keys behaviour as implemented
       in the x2go Python module.
 .
   [ Daniel Teichmann ]
   * New upstream release (0.6.1.3):
     - pyhoca-cli: Print debug message before exiting pyhoca-cli.
     - Fix typo in man page.
     - Add --non-interactive cmdline option for forcefully preventing password
       queries on the TTY.
     - {pyhoca-cli, pyhoca/cli/frontend.py}: Only look for private ssh keys if
       appropriate.
     - pyhoca{-cli,/cli/frontend.py}: Add --ssh-passphrase feature.
 .
   [ Mihai Moldovan ]
   * New upstream version (0.6.1.3):
     - misc: pre-release copyright update.
     - man/man1/pyhoca-cli.1: pre-release date update.
     - misc: change http:// to https:// links where appropriate.
   * debian/control:
     + Change http:// to https:// links where appropriate.
   * debian/copyright:
     + Change http:// to https:// links where appropriate.
   * debian/watch:
     + Change http:// to https:// links where appropriate.
   * pyhoca-cli.spec:
     + Change http:// to https:// links where appropriate.
     + Drop Python 2 support for OpenSuSE Leap 15.4+ and Tumbleweed (and ALP).
     + Remove pycache handling from the files list. Python-2-variants don't
       have the concept of __pycache__ directories at all, so using
       %pycache_only there is redundant. Python-3-variants sprinkle __pycache__
       directories wherever there are .py files, which means that they are
       conveniently contained in the "pyhoca" subdirectory of sitelib. Older
       *SuSE versions, including Leap, just ignored files or directories in the
       %files list that do not exist, but Tumbleweed is throwing an error if
       you try to include a file or directory that does not exist. The fix is
       easy: don't try to include the non-existent __pycache__ top-level
       directory.


------------=_1692687302-29100-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.x2go.org; 6 Mar 2020 21:54:39 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED
	autolearn=ham autolearn_force=no version=3.4.2
Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 1E9125DAC1
	for <submit@bugs.x2go.org>; Fri,  6 Mar 2020 22:54:37 +0100 (CET)
Received: by mail-pf1-x42e.google.com with SMTP id g21so1747089pfb.5
        for <submit@bugs.x2go.org>; Fri, 06 Mar 2020 13:54:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:subject:message-id:mime-version:content-disposition
         :user-agent;
        bh=zy3wJxP7YJveNNSf6nPv4mjeYCP7B+qztRZ5/a6uRXQ=;
        b=egB+URT9oLGIqMuSPbWKvaensVV938xepEYBqM5461CAKhWLxzQVTX3/MgoAiq9vlx
         s9ZcQmclp95nZ777tpXJbDS1yb9TOFlTu9dXzZ1nTIC0wNEHjdgUM9LxLbaNj137Kv7a
         LAyG/s1bW6gZkwXCLo5OU0lg67KYKJr5lzLTM6GGiMjrL4ckt2xxE+r4frhpvmSZeKfI
         oOa1Hse4zIpnr/nEVGwE5Q+j2qaSMdjrlYXWoViNIMlhwoWgioViI9XF5STlQBZSrzYy
         QtT0si+xbWI33TvAClctQPLoxgAm6s8O8R6als4AdFJz+zFaitE02tLjjcC1P4bQ5DZE
         Ob3w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:subject:message-id:mime-version
         :content-disposition:user-agent;
        bh=zy3wJxP7YJveNNSf6nPv4mjeYCP7B+qztRZ5/a6uRXQ=;
        b=ZmG3CsNAwl6ynkZt+JMWN/RH30D0jRgDCaIm6yFE6YoUG2QmYCCOke0Klw4ezV9M/w
         /m0QhXbqd71MWD7eQGeNvNI/5QxJgPatkUF7wFmZpn2YYupMEaBvSfNTDNPEHytEBzVd
         PAzg9Gr1AEFemdYAil9U+1wrfWdaAYNJYB6NbIRDpuGr9FF3yvvhc6hCQ3azgzdhT4Um
         fBiLjj9gfHJ7ZyrsUXivLXXzqgEgJYmWKQKDUmHp/nrOVVTKsoiwW5HwGh3kwOu0JMnS
         50Om/lEuAS/OJTyuYoWor0xQdeunpvR6yGcZGZm2+LpDOAT5BIUx0cMesdagXD1MkhiJ
         2XNg==
X-Gm-Message-State: ANhLgQ2+RuSrklL76jHWEghHDVuG3LoRZR4T7Z1qScRGeAmsv0hDbX6q
	bwJOcQVhHsAV+4mNWQR6bAQeIy/I
X-Google-Smtp-Source: ADFU+vsJK3iaHIOZfU56f5e+o7CinQhHbePLj2iAvoXe/iSqxP5QP7e5IBKf/oiAwBOa983UC5J+zw==
X-Received: by 2002:aa7:858a:: with SMTP id w10mr5646369pfn.210.1583531674430;
        Fri, 06 Mar 2020 13:54:34 -0800 (PST)
Received: from rg1.lan ([69.172.163.82])
        by smtp.gmail.com with ESMTPSA id h3sm36788404pfo.102.2020.03.06.13.54.33
        for <submit@bugs.x2go.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 06 Mar 2020 13:54:33 -0800 (PST)
Date: Fri, 6 Mar 2020 13:54:31 -0800
From: Randy Goldenberg <randy.goldenberg@gmail.com>
To: submit@bugs.x2go.org
Subject: pyhoca-cli fails to connect to suspended x2go session
Message-ID: <20200306215431.ama4sjaxc5hzkm6t@rg1.lan>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="sezhdgbdazlcqlyo"
Content-Disposition: inline
User-Agent: NeoMutt/20180323-90-193612


--sezhdgbdazlcqlyo
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Package: pyhoca-cli
Version: 0.6.1.2
Tag: patch

pyhoca-cli fails to connect to suspended x2g0 sessions.

$ pyhoca-cli --server my.x2go.server -t desktop -c openbox-session -g maximize 
-R NEWEST

pyhoca-cli[13131] NOTICE: preparing requested X2Go session
pyhoca-cli[13131] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[13131] (x2gosessregistry-pylib) NOTICE: registering X2Go session 
Pyhoca-Client_Session...
pyhoca-cli[13131] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[13131] (x2gocontrolsession-pylib) NOTICE: connecting to 
[my.x2go.server]:22
/usr/lib/python3/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: 
CTR mode needs counter parameter, not IV
 self._cipher = factory.new(key, *args, **kwargs)
pyhoca-cli[13131] (PyHocaCLI) NOTICE: authentication has been successful
pyhoca-cli[13131] (PyHocaCLI) NOTICE: give the X2Go session some time to come 
up...
Traceback (most recent call last):
 File "/usr/bin/pyhoca-cli", line 455, in <module>
   thisPyHocaCLI.MainLoop()
 File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py", line 702, in 
MainLoop
   self.resume_session(self.x2go_session_hash)
 File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py", line 229, in 
resume_session
   if available_sessions is None:
UnboundLocalError: local variable 'available_sessions' referenced before 
assignment

client OS: Ubuntu 16.04.6 LTS

server OS: Ubuntu 16.04.6 LTS

server's version of the x2goserver package:
x2goserver: 4.1.0.4
x2goserver-common: 4.1.0.4
x2goserver-desktopsharing: 4.1.0.3
x2goserver-extensions: 4.1.0.4
x2goserver-fmbindings: 4.1.0.4
x2goserver-printing: 4.1.0.4
x2goserver-xsession: 4.1.0.4

Patch attached.



----- End forwarded message -----

--sezhdgbdazlcqlyo
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="front.py_resume_session.diff"

--- /usr/lib/python3/dist-packages/pyhoca/cli/frontend.py	2020-03-06 13:12:15.067076509 -0800
+++ /usr/lib/python3/dist-packages/pyhoca/cli/frontend.py.FIXED	2020-03-06 13:25:57.017743170 -0800
@@ -226,6 +226,7 @@
         """
         # resume a running session
         self.logger('resuming X2Go session: %s' % self.args.resume, loglevel=x2go.loglevel_INFO, )
+        available_sessions = self._X2GoClient__list_sessions(s_hash, with_command=self.args.command)
         if available_sessions is None:
             available_sessions = self._X2GoClient__list_sessions(s_hash)
         if available_sessions and self.args.resume == 'OLDEST':

--sezhdgbdazlcqlyo--

------------=_1692687302-29100-0--
