Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the config-model CPAN distribution.

Report information
The Basics
Id: 92639
Status: resolved
Priority: 0/
Queue: config-model

People
Owner: DDUMONT [...] cpan.org
Requestors: LRUPP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.047
Fixed in: 2.048



Subject: cme not working with Tk::Widget
I'm trying to execute cme on an openSUSE 13.1 distribution with perl 5.18.1 and the following perl Modules installed via RPM: * perl-Config-Model-2.047-0.noarch.rpm * perl-MouseX-StrictConstructor-0.02-0.noarch.rpm * perl-YAML-0.88-0.noarch.rpm * perl-Config-Model-CursesUI-1.104-0.noarch.rpm * perl-Config-Model-OpenSsh-1.232-0.noarch.rpm * perl-Tk-DirSelect-1.12-0.noarch.rpm ...and get the following trace: ~> cme edit ssh given is experimental at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 446, <F> line 7. when is experimental at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 447, <F> line 7. when is experimental at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 448, <F> line 7. when is experimental at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 449, <F> line 7. when is experimental at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 450, <F> line 7. Configuration item has a internal error: fetch_element: missing name Trace begun at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Node.pm line 701 Config::Model::Node::fetch_element('Config::Model::Node=HASH(0x4d441d0)', undef) called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Backend/OpenSsh.pm line 113 Config::Model::Backend::OpenSsh::assign('Config::Model::Backend::OpenSsh::Ssh=HASH(0x42402e0)', 'Config::Model::Node=HASH(0x2f299c0)', 'UseRsh', 'ARRAY(0x494b8f8)', '') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Backend/OpenSsh.pm line 75 Config::Model::Backend::OpenSsh::read('Config::Model::Backend::OpenSsh::Ssh=HASH(0x42402e0)', 'file', 'config', 'os_config_dir', 'HASH(0x4237700)', 'config_dir', '~/.ssh', 'root', '', 'config_dir', '~/.ssh/', 'backend', 'OpenSsh::Ssh', 'check', 'yes', 'config_file', undef, 'file_path', '/home/lars/.ssh/config', 'io_handle', 'IO::File=GLOB(0x49649e0)', 'object', 'Config::Model::Node=HASH(0x2f299c0)') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/BackendMgr.pm line 404 eval {...} at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/BackendMgr.pm line 403 Config::Model::BackendMgr::try_read_backend('Config::Model::BackendMgr=HASH(0x4237568)', 'HASH(0x4237718)', '', undef, 'yes', 'OpenSsh::Ssh') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/BackendMgr.pm line 280 Config::Model::BackendMgr::read_config_data('Config::Model::BackendMgr=HASH(0x4237568)', 'read_config', 'ARRAY(0x2f2e330)', 'check', 'yes', 'read_config_dir', undef, 'config_file', undef, 'auto_create', undef) called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Node.pm line 389 Config::Model::Node::read_config_data('Config::Model::Node=HASH(0x2f299c0)', 'check', 'yes') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Node.pm line 356 Config::Model::Node::init('Config::Model::Node=HASH(0x2f299c0)') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Node.pm line 545 Config::Model::Node::get_element_name('Config::Model::Node=HASH(0x2f299c0)', 'for', 'beginner', 'check', 'no') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/ObjTreeScanner.pm line 148 Config::Model::ObjTreeScanner::scan_node('Config::Model::ObjTreeScanner=HASH(0x3f76ba0)', 'ARRAY(0x422ef08)', 'Config::Model::Node=HASH(0x2f299c0)') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 502 Config::Model::TkUI::__ANON__(1, undef) called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 515 Config::Model::TkUI::reload('Config::Model::TkUI=HASH(0x3f76318)') called at /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/TkUI.pm line 220 Config::Model::TkUI::Populate('Config::Model::TkUI=HASH(0x3f76318)', 'HASH(0x303dbb0)') called at /usr/lib/perl5/vendor_perl/5.18.1/x86_64-linux-thread-multi/Tk/Derived.pm line 477 Tk::Derived::InitObject('Config::Model::TkUI=HASH(0x3f76318)', 'HASH(0x303dbb0)') called at /usr/lib/perl5/vendor_perl/5.18.1/x86_64-linux-thread-multi/Tk/Widget.pm line 203 Tk::Widget::new('Config::Model::TkUI', 'MainWindow=HASH(0x3f6b198)', '-root', 'Config::Model::Node=HASH(0x2f299c0)', '-experience', 'beginner') called at /usr/lib/perl5/vendor_perl/5.18.1/x86_64-linux-thread-multi/Tk/Widget.pm line 256 Tk::Widget::__ANON__('MainWindow=HASH(0x3f6b198)', '-root', 'Config::Model::Node=HASH(0x2f299c0)', '-experience', 'beginner') called at /usr/bin/cme line 378
Le Sam 01 Fév 2014 15:14:11, LRUPP a écrit : Show quoted text
> I'm trying to execute cme on an openSUSE 13.1 distribution with perl > 5.18.1 and the following perl Modules installed via RPM: > * perl-Config-Model-2.047-0.noarch.rpm > * perl-Config-Model-OpenSsh-1.232-0.noarch.rpm > * perl-Tk-DirSelect-1.12-0.noarch.rpm
I'm delighted to know that OpenSuse users can install recent version of Config::Model from RPM packages :-) I thought only Debian and its derivatives were up-to-date. Show quoted text
> 'Config::Model::Node=HASH(0x2f299c0)', 'UseRsh', 'ARRAY(0x494b8f8)', > '') called at > /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Backend/OpenSsh.pm line > 75
Above is the real reason why cme is failing: Ssh model does not know UseRsh parameter. This parameter has been deprecated for quite a while and is not listed in ssh_config man page. This bug is not related to Tk. That said, the behavior in case of unexpected parameter is lackluster. That's one bug that I'll fix. I will also add some level of support for UseRsh and FallBackToRsh. There are 2 options: * add them as deprecated so they will be dropped when editing /etc/ssh/ssh_config with cme * add them as normal, issue a warning when set to true and let the user clear them manually (or with cme fix ssh) What do you think ? Last but not least, thanks for providing the whole stack trace :-) All the best
Am Sa 01. Feb 2014, 11:06:25, DDUMONT schrieb: Show quoted text
> I'm delighted to know that OpenSuse users can install recent version > of Config::Model from RPM packages :-) I thought only Debian and its > derivatives were up-to-date.
Since openSUSE started the Build Service, nearly the whole CPAN is available via packages... :-) Show quoted text
> > 'Config::Model::Node=HASH(0x2f299c0)', 'UseRsh', 'ARRAY(0x494b8f8)', > > '') called at > > /usr/lib/perl5/vendor_perl/5.18.1/Config/Model/Backend/OpenSsh.pm > > line > > 75
> > Above is the real reason why cme is failing: Ssh model does not know > UseRsh parameter. This parameter has been deprecated for quite a while > and is not listed in ssh_config man page.
Right: I can confirm that once I removed the following entries from my .ssh/config the application starts: UseRsh no FallBackToRsh no KeepAlive yes Show quoted text
> This bug is not related to Tk.
Indeed. Just related to an user with a real old, never touched config - sorry. :-) Show quoted text
> There are 2 options: > * add them as deprecated so they will be dropped when editing > /etc/ssh/ssh_config with cme > * add them as normal, issue a warning when set to true and let the > user clear them manually (or with cme fix ssh) > > What do you think ?
I'm not a big fan of removing stuff a user has added (by intention or by fault) without notice. So my favorite would be option number 2 - especially as it looks to me like ssh is simply ignoring those parameters. Thanks for the fast reaction!
Hello The 2 mains problem shown by this bug are now solved: * Unhelpful error message is now fixed in Config::Model 2.048 * Old OpenSsh parameters UseRSh and FallBackToRsh are supported by Config::Model::OpenSsh 1.233. Thanks for the report