Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#1370 closed defect (fixed)

Can't login using 2.1 preview

Reported by: andrewd Owned by: jng
Priority: high Milestone: Maestro-3.0
Component: Maestro Version: 2.1.0
Severity: major Keywords:
Cc: External ID:

Description

Using the v2.1 preview, I get an error when trying to log in to my server...this works in the 2.0 version. The message that I get is:

Failed to log on because: Exception has been thrown by the target of an invocation.

Change History (22)

comment:1 Changed 8 years ago by jng

Severity: blockermajor
Status: newassigned

That error is quite deceptive. There's actually nested errors that are not being shown. I'll be submitting a patch that processes the message component of all nested exception objects. Please update this ticket once the patch has landed, as it will reveal the full extent of the problem.

comment:2 Changed 8 years ago by jng

r4933 has more detailed exception messages. Please update this ticket with the "true" error message. If you can't build from trunk, wait a day or two when I can put out a new 2.1 preview release.

comment:3 Changed 8 years ago by andrewd

Ya, I figured that error was going to be fairly useless to you. Is there a link to the r4933 binaries (I don't see a link anywhere)? I can't compile it myself...

comment:4 Changed 8 years ago by andrewd

I just installed the latest preview release, and here's what I get...it lists 4 "extended error info" items - the first one is "Failed to connect, perhaps session is expired", followed by three 401 errors.

comment:5 Changed 8 years ago by jng

Hmmm, does the server log this failed login attempt?

comment:6 Changed 8 years ago by andrewd

It does...

xxx.xxx.xxx.x - - [08/Jun/2010:09:12:01 -0300] "GET /mapguide/mapagent/mapagent.fcgi?OPERATION=CREATESESSION&VERSION=1.0.0&FORMAT=text%2fxml&CLIENTAGENT=MapGuide+Maestro+API+v2.1.0.4936&LOCALE=en HTTP/1.1" 401 66

comment:7 Changed 8 years ago by jng

Here's a simple test you can do:

Go to your mapagent test pages:

http://localhost:8008/mapguide/mapagent/index.html (Apache w/ default config) http://localhost/mapguide/mapagent/index.html (IIS w/ default config)

Go to Miscellaneous API - Other

Choose the CreateSession? operation

Hit Submit, use your default MG Administrator login.

If it doesn't spit out a long string of text (your session id), then it must be some configuration issue and explains why Maestro can't log in.

If it does however, then it's a legit problem on the Maestro side.

comment:8 Changed 8 years ago by andrewd

I get a sessionid when I do that...no errors.

comment:9 Changed 8 years ago by andrewd

Still doesn't work in the final v2.1.

comment:10 Changed 8 years ago by jng

Milestone: Maestro-2.1Maestro-2.x

comment:11 Changed 8 years ago by andrewd

Any progress on this, or is there anything I can do to help debug this? I sure would love to be able to test out some of these great new features.

comment:12 Changed 8 years ago by jng

What config/languages are you using? (Apache/IIS)

If you can debug using Visual Studio, then you could try breaking on the caught exception (before it is displayed in a MessageBox?) and inspect the runtime state of that caught exception. It may reveal more information.

comment:13 Changed 8 years ago by andrewd

I'm using Apache (default MGOS Install). I can't debug using visual studio, no. I'd gladly try out debug builds though, if that's an option...

comment:14 Changed 8 years ago by andrewd

Update: I installed this on XP Pro and Server 2008 (x64)...same problem. I still can't log on to my server (and yes, the server install was the same server with mgos - even that failed).

comment:15 Changed 8 years ago by andrewd

Just a thought - did something get changed in the way that the username/password gets handled in 2.1? My password has some slightly unfriendly characters in it (":", ";" and "\")...could that be a possible cause?

comment:16 Changed 8 years ago by jng

Ooooh, you might be onto something.

Yes I did change how connections are initialized. They are now initialized via connection strings. When you login it is doing passing something similar to the following:

Url=http://localhost:8008/mapguide/mapagent/mapagent.fcgi;Username=Administrator;Password=admin

A password with the ';' character is obviously going to trip this up.

comment:17 Changed 8 years ago by jng

Can you build from source? If so, can you try r5060 and see if you can login? If not I'll upload a test build

comment:18 Changed 8 years ago by andrewd

Unfortunately, I can't build from source. But I'll certainly try out a test build, if you can make it!

comment:19 Changed 8 years ago by jng

I've put up a build of r5060 here (on my FDO Toolbox project site because osgeo is not propagating my upload):

http://fdotoolbox.googlecode.com/files/MapGuide%20Maestro%20r5060.zip

Let me know how it goes.

comment:20 Changed 8 years ago by andrewd

Fixed - r5060 does the trick!

comment:21 Changed 8 years ago by jng

Resolution: fixed
Status: assignedclosed

comment:22 Changed 7 years ago by jng

Milestone: Maestro-2.1.xMaestro-3.0

Milestone Maestro-2.1.x deleted

Note: See TracTickets for help on using tickets.