#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 by , 14 years ago
Severity: | blocker → major |
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
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:6 by , 14 years ago
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 by , 14 years ago
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:10 by , 14 years ago
Milestone: | Maestro-2.1 → Maestro-2.x |
---|
comment:11 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
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 by , 14 years ago
Unfortunately, I can't build from source. But I'll certainly try out a test build, if you can make it!
comment:19 by , 14 years ago
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:21 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.