Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIM_ComputerSystem created from WMI should have lowercase host name #13

Open
rchateauneu opened this issue Feb 3, 2018 · 1 comment
Labels

Comments

@rchateauneu
Copy link
Owner

CIM_ComputerSystem created from WMI should have lowercase host name.
When going from the WMI page (entity_wmi.py) to the related survol link, it uses a host name in uppercase, although they must be in lowercase.
The consequence is that a wrong URL is created (host name in uppercase) but the alias is OK.

@rchateauneu rchateauneu added the bug label Feb 4, 2018
@rchateauneu
Copy link
Owner Author

rchateauneu commented Oct 27, 2018

Example:
http://rchateau-hp:8000/survol/entity.py?xid=CIM_ComputerSystem.Name=rchateau-HP

This URL also creates the node:
http://rchateau-hp:8000/survol/entity.py?xid=CIM_ComputerSystem.Name=rchateau-hp

These two nodes are linked with an read "Alias" edge.

But this is not correct, because the hostname should be converted to lowercase.

I tried to use in CIM_ComputerSystem:init.py the same technique as query/init.py by replacing an string in the ontology by a derived class from str: This t(echnique allows to transparently encode/decode property values.

This does not work. See class CgiPropertyB64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant