Mremoteng: Can't change inheritance on folders direclty under root Connections

Created on 15 Nov 2017  路  16Comments  路  Source: mRemoteNG/mRemoteNG


On the root Connection I have enable Inherit All = yes
When I now create a new folder I can only change the name. In previous versions I was able to disable the inheritance for specific options like username, password etc. But now the Inheritance button is greyed out.
For subfolders it is not an issue only on folder directly under the root Connection.


|Detail|Value|
|--:|---|
|Operating system | Windows 10 x64 |
|mRemoteNG version| 1.75.7011.34996 |


Bug

All 16 comments

It's also not posible to sort the connections anymore.
In version mRemoteNG 1.75.7000 this works fine.

Im able to replicate this. When a folder is directly under the root connections node, it should have inheritance completely disabled. I'll look into this.

I believe inheritance should be enabled when I select "Inherit All" on the root Connections.
But I should be able to disable it again on selected fields.

It doesn't make much sense to allow items to inherit from the root connections node since no connection properties can be changed on that node.

I also re-read a line in your original post on this thread:

On the root Connection I have enable Inherit All = yes

And this should not even be possible. Since the root connection node has no parents, the inheritance button should not be available on it.

For example on the root Connections I set the default protocol RDP and Key Combination to yes.

On the first folder I disabled only username, password and domain from inheritance and configured them. And then all subfolders/hosts would inherit from the first folder which inherits its settings from the root Connections.

If I remember correct in an older version (1.72?) it was necessary to enable Inherit All on the root Connections, otherwise inheritance was not automatically set on the hosts and needed to be enabled always manually. Which was quite annoying.

If I remember correct in an older version (1.72?) it was necessary to enable Inherit All on the root Connections, otherwise inheritance was not automatically set on the hosts and needed to be enabled always manually. Which was quite annoying.

Ahh I think you are talking about default connection inheritance, which will set the inheritance for new items. This does not change already created connections/folders. The requirement of "When a folder is directly under the root connections node, it should have inheritance completely disabled" was also the behavior in v1.72.

Resolved the bug around inheritance not being disabled when a connection/container's parent is the root node. Commit b03d355

@LIyoai I'm going to close this issue for now, but please reopen it if you think this issue is not resolved or if you have any other questions

I try to explain it on the screenshot.
In the past, I don't know when, the "Inheritance" button was available on Admin.
Now it is not available on Admin only on subfolders.

mremote_inheritance

That is the correct behavior. Setting an inheritance item on the Admin folder is saying "the Admin folder should inherit this value from its parent (Connections)". Since the Connections node is not meant to hold connection information, it doesn't make sense for its direct children to inherit values from it. Since the Admin folder does have configurable connection details, its children (Active Directory) are allowed to inherit from it.

@sparerd That makes sense, but existing folders on the root are now missing fields in the config panel that had values inherited from "Connections". How do we make those fields reappear?

For clarification see the two attached screenshots of the Config of an existing folder vs a new folder. The existing folder is missing "Description", "Icon", "Panel", etc from the Config panel. They are present in the a newly created folder.

Existing Folder Config Panel
New Folder Config Panel

That is definitely a bug, and one that the recent release (1.75.7012) was supposed to address. It may be that deserialization doesnt trigger inheritance to be disabled.

A work around would be to put that folder into another folder, then move it back under the Connections node. That should trigger the logic that turns off inheritance.

Ill keep looking into this.

The work around is working. Thank you.

Kicking this issue forward to v1.76 since we are reaching the end of development for that version anyways

Ok, so it looks like deserialization is the culprit here. If the connections/containers are created within mRemoteNG or are moved under within the connection tree, the right thing happens. But, if connections are imported from csv/xml (or added to the confCons by hand and reloaded) with inheritance turned on, then the config window will hide the fields which have been inherited. I'll write up some tests and then figure out a fix.

Commit 5076f13 should resolve this issue. This will be available in the next v1.76 pre-release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

archonik picture archonik  路  3Comments

agiz10 picture agiz10  路  4Comments

nerddtvg picture nerddtvg  路  3Comments

seth-c-stenzel picture seth-c-stenzel  路  4Comments

Taelyn picture Taelyn  路  4Comments