From mike.gabriel@das-netzwerkteam.de  Fri May 16 13:53:24 2014
Received: (at 500) by bugs.x2go.org; 16 May 2014 11:53:26 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id C27085DB1B
	for <500@bugs.x2go.org>; Fri, 16 May 2014 13:53:24 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 46FC92CF3;
	Fri, 16 May 2014 13:53:22 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 412D13BA6A;
	Fri, 16 May 2014 13:53:24 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ij9bXczuWNqA; Fri, 16 May 2014 13:53:24 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 02A423B894;
	Fri, 16 May 2014 13:53:24 +0200 (CEST)
Received: from p50932635.dip0.t-ipconnect.de (p50932635.dip0.t-ipconnect.de
 [80.147.38.53]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Fri, 16 May 2014 11:53:23 +0000
Date: Fri, 16 May 2014 11:53:23 +0000
Message-ID: <20140516115323.Horde.TsnuEBK_0Rufk-uRQqxHsQ5@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Orion Poplawski <orion@cora.nwra.com>, 500@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#500: Fwd: [Bug 1098201] New: [abrt] pyhoca-gui:
 _file.py:330:to_profile_id:X2GoProfileException: The sessions config file
 contains multiple session profiles with name: nbecker7
References: <bug-1098201-140047@bugzilla.redhat.com>
 <5374F191.2050001@cora.nwra.com>
In-Reply-To: <5374F191.2050001@cora.nwra.com>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.7)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 80.147.38.53
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101
 Firefox/29.0 Iceweasel/29.0.1
Content-Type: multipart/signed; boundary="=_5NOBZKmaULx1YuAfPxj_rg1";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0

This message is in MIME format and has been PGP signed.

--=_5NOBZKmaULx1YuAfPxj_rg1
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Control: retitle -1 Allow multiple session profiles to have the same=20=20
name=20(for being compatible with X2Go Client)


Hi Orion,

On  Do 15 Mai 2014 18:55:45 CEST, Orion Poplawski wrote:

> Package: python-x2go
> Version: 0.4.0.9
>
> Seems like a couple issues:
> - pyhoca-gui shouldn't emit a traceback
> - How to handle multiple session profiles with the same name?
> - Is x2goclient allowing that to happen?
>
>
> -------- Original Message --------
> Subject: [Bug 1098201] New: [abrt] pyhoca-gui:=20=20
>=20_file.py:330:to_profile_id:X2GoProfileException: The sessions config=20=
=20
>=20file contains multiple session profiles with name: nbecker7
> Date: Thu, 15 May 2014 13:16:18 +0000
> From: bugzilla@redhat.com
> To: orion@cora.nwra.com
>
> https://bugzilla.redhat.com/show_bug.cgi?id=3D1098201
>
>             Bug ID: 1098201
>            Summary: [abrt] pyhoca-gui:
>                     _file.py:330:to_profile_id:X2GoProfileException: The
>                     sessions config file contains multiple session
>                     profiles with name: nbecker7
>            Product: Fedora
>            Version: 20
>          Component: pyhoca-gui
>           Assignee: orion@cora.nwra.com
>           Reporter: ndbecker2@gmail.com
>         QA Contact: extras-qa@fedoraproject.org
>                 CC: orion@cora.nwra.com
>
>
>
> Description of problem:
> 1st time trying pyhoca-gui (have used x2goclient before)
> On icon in tray, left click, then try to connect to existing session
>
> Version-Release number of selected component:
> pyhoca-gui-0.4.0.9-1.fc20
>
> Additional info:
> reporter:       libreport-2.2.2
> cmdline:        pyhoca-gui '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '=
'
> dso_list:       python-x2go-0.4.0.9-1.fc20.noarch
> executable:     /usr/bin/pyhoca-gui
> kernel:         3.14.3-200.fc20.x86_64
> runlevel:       N 5
> type:           Python
> uid:            1000
>
> Truncated backtrace:
> _file.py:330:to_profile_id:X2GoProfileException: The sessions config file
> contains multiple session profiles with name: nbecker7
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/frontend.py", line =
784,
> in OnSessionAuthenticate
>     if self.session_profiles.get_profile_config(profile_name)['directrdp'=
]:
>   File=20=20
>=20"/usr/lib/python2.7/site-packages/x2go/backends/profiles/_file.py",=20=
=20
>=20line
> 213, in get_profile_config
>     _profile_id =3D profile_id or
> self.check_profile_id_or_name(profile_id_or_name)
>   File=20=20
>=20"/usr/lib/python2.7/site-packages/x2go/backends/profiles/_file.py",=20=
=20
>=20line
> 456, in check_profile_id_or_name
>     _profile_id =3D self.to_profile_id(profile_id_or_name)
>   File=20=20
>=20"/usr/lib/python2.7/site-packages/x2go/backends/profiles/_file.py",=20=
=20
>=20line
> 330, in to_profile_id
>     raise X2GoProfileException('The sessions config file contains multipl=
e
> session profiles with name: %s' % profile_name)
> X2GoProfileException: The sessions config file contains multiple session
> profiles with name: nbecker7
>
> Local variables in innermost frame:
> _profile_ids: ['20131224085249847', '20140403135324010']
> self: X2GoIniFile(_cached_profile_ids=3D['20131224085249847',
> '20140403135324010', '20140416095719622'],_cached_profile_names=3D[u'New
> session', u'nbecker7', u'nbecker7'],_profile_metatypes=3D{'20140416095719=
622':
> u'KDE Desktop', '20131224085249847': u'KDE Desktop',=20=20
>=20'20140403135324010': u'KDE
> Desktop'},_profiles_need_profile_id_renewal=3D[],config_files=3D['/home/n=
becker/.x2goclient/sessions'],defaultValues=3D{},iniConfig=3D<ConfigParser.=
SafeConfigParser
> instance at 0x239ccf8>,logger=3D<x2go.log.X2GoLogger object at
> 0x239e5d0>,session_profiles=3D['20131224085249847', '20140403135324010',
> '20140416095719622'],user_config_file=3D/home/nbecker/.x2goclient/session=
s)
> profile_name: u'nbecker7'
> p: '20140416095719622'

I have had a discussion with Alex about this recently, as well. X2Go=20=20
Client=20allows session profiles that bear the same name, whereas=20=20
PyHoca-GUI=20(Python X2Go) does not.

I will see how that can be changed in Python X2Go internally...

Mike

--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x=
fb

--=_5NOBZKmaULx1YuAfPxj_rg1
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJTdfwzAAoJEJr0azAldxsx/90P/A4n9p4/bHxTnL3arUF+uw1x
K0DuzP3ODUgCRBHzQqEoPn8iLK8PsbE7yhSPckjEiJZR7cGRRs9UGgyMIBRl4fjl
ijifAl/ayGh86dXZRU5hmz5W3J6/IfyvdNp9T6xu8MwYWSULRXVg2YAbzUeV/SeT
ufmZ0JqoJaCEOMTpEwlEr4vohBRVhzPrHEC+1ZRP4Zxd3XB/jpjyFuUGiJmRYW8L
YGBbRA0ThQoPr8AXw6OXVudu7XFSmjcQiG+L+p2PCVi8u9eufxvfmJIqFyVNswRI
4qK7lkryK5qldSiFJ09xOEir5f3YLS4FD7h69CL2pIGSxDDD4vsD7DjJ32paEut6
WjFLXqetEyF8ZenxFlTks83ztsFKTdd3Uf1/s986PDr0lgsgmLVR1VV+gzoRhMOS
fcX3Ggm+8PkiXQB1W08PXggOSqx3BDbUSekBZxEtyoXw+OAFihY6kdJIXlYi/H2X
I6d1DSqda4XI8r06Q0uIwyPefPDofsms6ns7CdqzftOorTLo4sKBIs24n1ygtWC3
3JRZF3dyvL5FxFn3EBpAsm0vw6oL+VB4pJVl94VL8fC0kTEssQPJ73pUwP8mNUeq
Q0FMglQEqMlXk+dvvcfT6Uc5+NFO0ZgvJSH2LVZNWjUd70gQcU1saMbL6ob7V6+Q
iO9WszHR1y3lLujsfjCE
=UfGF
-----END PGP SIGNATURE-----

--=_5NOBZKmaULx1YuAfPxj_rg1--

