After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 527128 - Java application cannot communicat with at-spi-registryd
Java application cannot communicat with at-spi-registryd
Status: RESOLVED FIXED
Product: ORBit2
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: ORBit maintainers
ORBit maintainers
: 526700 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-09 12:36 UTC by Li Yuan
Modified: 2008-04-15 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (791 bytes, patch)
2008-04-09 12:38 UTC, Li Yuan
committed Details | Review
rework the patch. (1.55 KB, patch)
2008-04-14 02:23 UTC, Jeff Cai
none Details | Review
remove the unused variable from the last patch. (1.49 KB, patch)
2008-04-14 02:58 UTC, Jeff Cai
none Details | Review

Description Li Yuan 2008-04-09 12:36:04 UTC
The cause is if set ORBit only allow local connection, after calling link_use_local_hostname in linc-protocols.c, linc should change the format of local_host if necessary.
Comment 1 Li Yuan 2008-04-09 12:38:35 UTC
Created attachment 108923 [details] [review]
patch
Comment 2 Michael Meeks 2008-04-10 07:31:23 UTC
Patch looks ok to me; slight race risk - but prolly not significant in practice.
Please do commit.
Comment 3 Li Yuan 2008-04-10 09:32:57 UTC
Committed, thanks for review :)
Comment 4 Jeff Cai 2008-04-14 02:23:04 UTC
Created attachment 109205 [details] [review]
rework the patch.

If "127.0.0.1 localhost" is not configured in /etc/hosts, the incoming
requests from local is still probabally regarded as external requests
because getaddrinfo doesn't get the loop back ip address. I think
whatever whether the loop back address is configured or not, we can
hard-code these addresses into the source code.
Comment 5 Jeff Cai 2008-04-14 02:58:03 UTC
Created attachment 109207 [details] [review]
remove the unused variable from the last patch.
Comment 6 Jeff Cai 2008-04-14 02:58:56 UTC
By the way, I think Li's patch is not needed any more.
Comment 7 Jeff Cai 2008-04-14 02:59:42 UTC
*** Bug 526700 has been marked as a duplicate of this bug. ***
Comment 8 Michael Meeks 2008-04-14 08:46:56 UTC
If you don't have "localhost" setup to point to your local IP address - then yes, you're going to have serious issues :-) but the ORBit2 problems will prolly be the least of them ;->
Comment 9 Jeff Cai 2008-04-14 09:00:57 UTC
Michael, do you think the patch is okey?
Comment 10 Jeff Cai 2008-04-15 02:38:16 UTC
Copy Michael's e-mail here:

Sure - if it makes sense & the regression tests still pass, and you've
posted it to the ORBit2 list for comments - please do commit.
Ultimately, it's only you guys using the IPv4 stuff in the local-only
case.
Comment 11 Jeff Cai 2008-04-15 11:52:37 UTC
Removed the patch of Li Yuan and Committed the new patch.