[Bug 746894] New: Perl module X11::Auth not knowing about the openSUSE-specific XAUTHLOCALHOSTNAME environment variable.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c0 Summary: Perl module X11::Auth not knowing about the openSUSE-specific XAUTHLOCALHOSTNAME environment variable. Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: vargusz@fazekas.hu QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- Created an attachment (id=476013) --> (http://bugzilla.novell.com/attachment.cgi?id=476013) Suggested patch for the bug report, fixes Perl module X11::Auth User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0 There is an openSUSE-specific solution for X authentication failures in case of changing host names, which uses an environment variable called XATHLOCALHOSTNAME. It was introduced after Bug #420057, and the discussion of Bug #538064 shows that is could not be pushed upstream GDM (upstream bug report in [1]). The Perl method X11::Auth->get_by_host() [2] in package perl-X11-Protocol tries to find the magic cookie for the host name returned by Sys::Hostname::hostname(), but the XATHLOCALHOSTNAME contains "localhost" instead of the real hostname, so no value is returned. The attached patch contains two independent attempts to fix this issue, and I think that either of them should be enough. This defect surfaced when trying to apply Debian testing's patch for xdg-screensaver in Bug #559110 to fix the issue of being unable to "poke" gnome-screensaver correctly. The issue with the Perl module X11::Auth cannot be reported upstream as the XATHLOCALHOSTNAME environment variable is openSUSE-specific. [1] https://bugzilla.gnome.org/show_bug.cgi?id=555464 [2] http://search.cpan.org/~smccam/X11-Protocol-0.56/Auth.pm Reproducible: Always Steps to Reproduce: Call X11::Protocol->new() in a Perl script and observe the error message on the output. Actual Results: Error message: "Connection to server failed -- (version 11.0) No protocol specified" Expected Results: The X11::Protocol->new() should succeed authenticating to the X server using X11::Auth -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eich@suse.com, | |Sascha.Manns@open-slx.de, | |sndirsch@suse.com Component|X.Org |Other AssignedTo|bnc-team-xorg-bugs@forge.pr |bnc-team-screening@forge.pr |ovo.novell.com |ovo.novell.com QAContact|xorg-maintainer-bugs@forge. |qa@suse.de |provo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c1 --- Comment #1 from Gábor Varga <vargusz@fazekas.hu> 2012-02-14 13:45:11 UTC --- Although the use of the XAUTHLOCALHOSTNAME environment variable is openSUSE-specific, the upstream developers might be interested to fix the X11::Auth Perl module to handle the case when the XAUTHORITY magic cookie is for "localhost" instead of the actual hostname. So finally I decided to open an issue at the Perl CPAN Public Bug Tracker too: https://rt.cpan.org/Public/Bug/Display.html?id=74997 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@novell.com AssignedTo|bnc-team-screening@forge.pr |coolo@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c2 --- Comment #2 from Gábor Varga <vargusz@fazekas.hu> 2012-06-07 12:47:32 UTC --- The proposed patch has been committed to openSUSE:Factory/perl-X11-Protocol as OBS Request 121743 [1]. [1] https://build.opensuse.org/request/show/121743 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c Gábor Varga <vargusz@fazekas.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |559110 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c3 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> 2012-06-27 15:09:32 UTC --- SR has been accepted. So let's close this one as fixed. Or did I miss anything here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c4 --- Comment #4 from Gábor Varga <vargusz@fazekas.hu> 2012-06-28 21:19:54 UTC --- Thanks, the "fixed" state is valid. Just a follow-up question: will the fix be propagated into the openSUSE 12.1 Updates repository? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=746894 https://bugzilla.novell.com/show_bug.cgi?id=746894#c5 --- Comment #5 from Swamp Workflow Management <swamp@suse.de> 2012-07-09 09:08:49 UTC --- openSUSE-RU-2012:0850-1: An update that has three recommended fixes can now be installed. Category: recommended (low) Bug References: 559110,746894,749612 CVE References: Sources used: openSUSE 12.1 (src): perl-X11-Protocol-0.56-3.4.1, xdg-utils-1.0.2-98.4.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com