Bug 682841
Summary: | IDN encoding failed with error code 5 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Metz <metz> | ||||
Component: | jwhois | Assignee: | Vitezslav Crhonek <vcrhonek> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 14 | CC: | redhat-bugzilla, vcrhonek | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | jwhois-4.0-28.fc15 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-06-07 04:23:01 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michael Metz
2011-03-07 18:31:44 UTC
According to /etc/jwhois.conf, "-C UTF-8 -T dn,ace" is going to be passed to the WHOIS server. I feel you should disable that part of your configuration, before firing your whois request... disabling query-format - line in jwhois.conf (didn't knew such a file existed *oops*) doesn't change anything. [IDN encoding of '-T dn 123456789012345678901234567890123456789012345678901234567890123.de' failed with error code 5] The fail is caused by libidn function idna_to_ascii_lz, error code 5 means "Output would be too large or too small". I think whois shouldn't pass RIPE options to that function, it's a bug. Can be workarounded with giving RIPE options through jwhois.conf . Created attachment 484466 [details]
proposed patch
Sorry for confusion in previous comment, I meant of course general whois server options, not just RIPE extended options...
I attached proposed patch which should fix the issue and there'll be update available soon in the testing. Please let me know if it works as expected.
jwhois-4.0-24.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/jwhois-4.0-24.fc14 jwhois-4.0-26.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/jwhois-4.0-26.fc15 jwhois-4.0-24.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. jwhois-4.0-26.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. Guys, I discussed the patch with Jonas Oberg and there's one question - the patch presumes, that queried address is last jwhois argument... What do you think - is it safe? Can we be sure that the last jwhois argument is always the queried address? I don't recall a case where the address isn't the last jwhois argument. And sorry for that trouble, I didn't think about that issue when I wrote the IDN support for jwhois something like 6 years ago. By the way...your patch needs one tiny fix, because of a mistake: -printf("[IDN encoding of '%s' failed with error code %d]\n", qstring, rc); +printf("[IDN encoding of '%s' failed with error code %d]\n", argv[optind], rc); (In reply to comment #10) > I don't recall a case where the address isn't the last jwhois argument. > And > sorry for that trouble, I didn't think about that issue when I wrote the IDN > support for jwhois something like 6 years ago. > > > By the way...your patch needs one tiny fix, because of a mistake: > > > > -printf("[IDN encoding of '%s' failed with error code %d]\n", qstring, rc); > > +printf("[IDN encoding of '%s' failed with error code %d]\n", argv[optind], > rc); Thank you Robert for information and patch mistake notification - I'll fix it. jwhois-4.0-28.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/jwhois-4.0-28.fc15 jwhois-4.0-25.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/jwhois-4.0-25.fc14 Package jwhois-4.0-28.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing jwhois-4.0-28.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/jwhois-4.0-28.fc15 then log in and leave karma (feedback). jwhois-4.0-25.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. jwhois-4.0-28.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |