breakercris / fire-hostadmin

Automatically exported from code.google.com/p/fire-hostadmin
0 stars 0 forks source link

Not considering comments #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Type a commented line with the form #<ip> <host name> (ie; #127.0.0.1 
localhost) using the host file comment format convention
2. Save
3. Check the list, you can see the commented host as a regular non-commented 
host.

What is the expected output? What do you see instead?
The commented host should be shown as disabled, or it should be hidden

What version of the product are you using? On what operating system?
HostAdmin v1.4.8 - Chrome v35 - MacOS X 10.9

Please provide any additional information below.

Original issue reported on code.google.com by scotti.s...@gmail.com on 4 Sep 2014 at 8:04

GoogleCodeExporter commented 8 years ago
could you provide some screenshot

 * hostfile content
 * menu

Original comment by farmer1...@gmail.com on 5 Sep 2014 at 2:56

GoogleCodeExporter commented 8 years ago
Sending the screenshots. Thanks.

Original comment by scotti.s...@gmail.com on 5 Sep 2014 at 1:51

Attachments:

GoogleCodeExporter commented 8 years ago
testapi.com.ar is disabled.

it looks like my screenshot when enabled

Original comment by farmer1...@gmail.com on 6 Sep 2014 at 1:28

Attachments:

GoogleCodeExporter commented 8 years ago
This host is disabled but it's part of a group. So when I enable the group, 
**all** entries are enabled I gotta disable one by one all the commented hosts.

Original comment by scotti.s...@gmail.com on 8 Sep 2014 at 3:08

GoogleCodeExporter commented 8 years ago
Group hosts can also be disabled by click the group 

In my screenshot,  

it means that hosts in project 3 are all enabled.
and in project 1 and project 2, there is at least one disabled host 

Original comment by farmer1...@gmail.com on 9 Sep 2014 at 3:34

Attachments:

GoogleCodeExporter commented 8 years ago
When you comment a host in the hosts file it shouldn't be taken into account 
never just like when I do this
[# 127.0.0.1 testapi.com.ar ]. But as it´s not following hosts file comment 
syntax and it makes it so useless because I need to comment every single host I 
have already commented using the HostAdmin syntax.

So if my host file I have this # 127.0.0.1 testapi.com.ar  
I gotta go ony be one and convert it into this [# 127.0.0.1 testapi.com.ar ]
and it takes so much unnecessary time.

Original comment by scotti.s...@gmail.com on 9 Sep 2014 at 2:09

GoogleCodeExporter commented 8 years ago
why do you want to convert it to  [# 127.0.0.1 testapi.com.ar ]
just for hiding from hostadmin?

Original comment by farmer1...@gmail.com on 10 Sep 2014 at 11:14

GoogleCodeExporter commented 8 years ago
 because that's why comments are meant to be

Original comment by scotti.s...@gmail.com on 10 Sep 2014 at 2:49

GoogleCodeExporter commented 8 years ago
Hi, I can not understand why you want add [ ] to a line 

Original comment by farmer1...@gmail.com on 11 Sep 2014 at 10:06

GoogleCodeExporter commented 8 years ago
if you want to hide any host from HostAdmin you can add #hide after host

Original comment by farmer1...@gmail.com on 15 Sep 2014 at 2:41

GoogleCodeExporter commented 8 years ago
Ok, to wrap this up, I see what the issue is. 
When I upload my host file preset, I expect to keep that intact. 
The problem here is that the original configuration is modified instead of 
working around the "visible" hosts (those who were not originally commented).
What I mean is that if I have a commented host, and I want to enable it, 
instead of just enabling it, hostadmin deletes that comment mark (#) modifying 
(and losing) the original preset.

Original comment by scotti.s...@gmail.com on 16 Sep 2014 at 12:37