On 09/11/2012 01:32 PM, Tomas Lestach wrote: > On Monday 10 of September 2012 11:36:49 Johannes Renner wrote: >> Hey, >> >> Here is a patch for adding some validation to the HTTP proxy field on the >> general config page (https://<hostname>/rhn/admin/config/GeneralConfig.do). >> >> This validator will allow FQDN or FQDN:port only, while a simple hostname >> will not pass. IPv4 addresses will pass, but IPv6 won't. > > What is the reason for not matching IPv6 addresses? > As we work on IPv6 support, this looks like a regression to me.
The reason is that we are not sure if the tools picking up the address from rhn.conf will actually be able to handle IPv6. Especially when using the [...]:port notation where the address is given in brackets: Curl e.g. was very recently still not able to handle adresses given in that notation. So we wanted to allow only notations where we know that it will actually work with. If you successfully tested this with an IPv6 based proxy and it works we can allow those addresses as well of course. Also it will still be possible to put a hostname that will resolve to an IPv6 address. Further, the comment in rhn.conf says # Use proxy FQDN, or FQDN:port which means even IPv4 addresses should not be allowed. >> Feel free to >> propose changes, this can be done in many different ways. I just went for >> an easy approach that reuses some existing and tested code, but we can also >> use a regex if you prefer that. >> >> BTW: Does anybody know why all error messages on that particular page keep >> on appearing twice? Or it's not the case for you? I might look after this >> bug as well.. > > Possible. > If you won't find any time to check the reason, could you, please, file a > Spacewalk BZ (with me as assignee), please? I will do that for now, since I am currently busy with other things as well. Thanks, Johannes -- SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel