[wpkg-users] False match of IP address to host name pattern (2)

VERDEYEN Jonathan jverdeyen at automatic-systems.com
Fri Feb 22 10:29:16 CET 2013


Ok, it seems to work ! I was actually already using hostname for extended host attribute matching but didn't realize the difference between the two.
It would be nice if one of the devs added it to the example hosts.xml files.
Thank you for your help !
Bye


-----Original Message-----
From: wpkg-users-bounces at lists.wpkg.org [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Stefan Pendl
Sent: lundi 18 février 2013 23:12
To: wpkg-users at lists.wpkg.org
Subject: Re: [wpkg-users] False match of IP address to host name pattern (2)

Am 18.02.2013 17:19, schrieb VERDEYEN Jonathan:
> I hit a strange case of IP address matching a host definition :
>
> Found host 'cnsuzd.+|cnsuzw.+|cnsuzt.+' matching IP '172.16.2.121'
>
> So looking up the archive, I found the same case dating from 2009 :
> http://lists.wpkg.org/pipermail/wpkg-users/2009-September/005770.html,
> when you have 3 dots in the host name, it would be considered as an IP
> address.
>
> Now I can add another dot but I wanted to check if it was expected as
> you seemed to have come up with a workaround back then and I am using
> WPKG 1.3.0.
>
> Now strangely, on some computers it went on and installed the programs
> from the mistaken profile corresponding to the host definition with
> the
> 3 dots (on a server of course Jand on some laptops) but on the virtual
> machine I'm doing my tests on, a dryrun shows it will apply the
> correct profile corresponding to the host name even after matching the
> IP address to the wrong host definition :
>
> Profiles applying to the current host:
>
> DesktopMer
>
> Here is the xml host definition:
>
> <host name="cnsuzd.+|cnsuzw.+|cnsuzt.+ "
> profile-id="DesktopStdChina"/>
>
> Tell me if you need more information or more tests.
>

This is a problem I have reported twice now and it was already fixed once, but it was reintroduced by a recent change.

I suggest to drop using the old name attribute in favor of the new hostname attribute, which doesn't exhibit the problem, since it limits the checking to host names instead of host names and IP addresses.

I have changed all my host assignments without loosing anything, but gaining more reliability.

Generally speaking the name attribute is deprecated due to its universal matching ability.

The hostname and ip attributes allow for better reliability and get rid of many false matching problems.


--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

Ce message et toutes les pièces jointes (ci-après le "message") sont confidentiels et établis à l'intention exclusive
de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Si vous n'êtes pas destinataire de ce
message, merci de le détruire immédiatement et d'avertir l'expéditeur.
--> Pensez à l'environnement avant d'imprimer ce message.

This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. If you are not the intended addressee of this message,
please delete it immediately and inform the sender.
--> Please consider the environment before printing this email.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________



More information about the wpkg-users mailing list