Bug #683

avatar

Cannot connect to remote server if smuxi password is numeric only

Added by Jan Krajdl 4712 days ago. Updated 4712 days ago.

Status:Closed Start:01/28/2012
Priority:High Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Engine
Target version:0.8.9.2
Complexity:

Low

Found in Version:

0.8.9.1

Votes: 0

Description

If I create on smuxi-server user which password contain only numeric chars, client can't connect. On client appears message:

An error occurred while connecting to the engine!

Engine URL: tcp://127.0.0.1:7689/SessionManager
Error: Cannot cast from source type to destination type.

Debug log from client:

2012-01-28 13:02:39,334 [Main] INFO  Smuxi.Frontend.SshTunnelManager - Connect(): ssh tunnel is ready
2012-01-28 13:02:39,335 [Main] DEBUG Smuxi.Frontend.EngineManager - Connect(): found old remoting channel, unregistering...
2012-01-28 13:02:39,337 [Main] DEBUG Smuxi.Frontend.EngineManager - Connect(): listen port of remoting channel is ready
2012-01-28 13:02:39,337 [Main] INFO  Smuxi.Frontend.EngineManager - Connecting to: tcp://127.0.0.1:7689/SessionManager
2012-01-28 13:02:39,579 [Main] ERROR Smuxi.Frontend.Gnome.EngineManagerDialog - System.InvalidCastException: Cannot cast from source type to destination type.

Server stack trace: 
  at Smuxi.Engine.SessionManager.Register (System.String username, System.String password, IFrontendUI ui) [0x0004e] in /var/tmp/portage/net-irc/smuxi-0.8.9.1/work/smuxi-0.8.9.1/src/Engine/SessionManager.cs:99 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000ad] in /var/tmp/portage/dev-lang/mono-2.10.5/work/mono-2.10.5/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:138 

Exception rethrown at [0]: 

  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x00000] in <filename unknown>:0 
2012-01-28 13:02:39,579 [Main] DEBUG TRACE - [smuxi-frontend.dll] EngineManager.Disconnect()
2012-01-28 13:02:39,579 [Main] DEBUG TRACE - [smuxi-frontend.dll] SshTunnelManager.Disconnect()
2012-01-28 13:02:39,579 [Main] DEBUG Smuxi.Frontend.SshTunnelManager - Disconnect(): killing ssh tunnel...
2012-01-28 13:02:39,580 [Main] DEBUG Smuxi.Frontend.SshTunnelManager - Disconnect(): ssh tunnel exited
2012-01-28 13:02:39,580 [Main] DEBUG TRACE - [smuxi-frontend.dll] SshTunnelManager.Dispose()
2012-01-28 13:02:39,580 [Main] DEBUG TRACE - [smuxi-frontend.dll] SshTunnelManager.Dispose(disposing = True)
Debug on server when clients try to connect:
2012-01-28 13:02:39,461 [-1242104976] DEBUG TRACE - [smuxi-engine.dll] SessionManager.Register(username = 'spm', password = 'XXX', ui = System.MarshalByRefObject)
Mono debug on server:
Symbol file /usr/lib/smuxi/smuxi-engine-xmpp.dll.mdb is not a mono symbol file

When I change user password and add alphabet char everything works ok.

Versions on server:
Distro: Gentoo Linux x86
Smuxi: 0.8.9.1 (from portage, ~x86 keyword)
Mono: 2.10.5

Versions on client:
Distro: Ubuntu Oneiric amd64
Smuxi: 0.8.9.1 (from ppa)
Mono: 2.10.5


Related issues

related to Smuxi - Bug #345 password with only digits fail to work with remote engines Closed 02/10/2010

Associated revisions

Revision 56e585f665cb9ddd03ad5031ecf35bf4fb7d5f8c
Added by Mirco Bauer 4712 days ago

[Engine] Read config keys with default string values always as string (closes: #683)

History

Updated by Mirco Bauer 4712 days ago

avatar
  • Category set to Engine
  • Assigned to set to Mirco Bauer
  • Priority changed from Normal to High
  • Target version set to 0.8.9.2
  • Complexity set to Low
  • Found in Version set to 0.8.9.1

Updated by Mirco Bauer 4712 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF