cgaspard / mantiskanban

Mantis Kanban that uses ajax and mantisconnect
45 stars 33 forks source link

Can't login (local configuration issue?) #20

Closed bokkepoot closed 10 years ago

bokkepoot commented 11 years ago

I'm trying to login, but unfortunatly the popup box only says : "Error Login : Failure" which isn't quite verbose. Me not being a .js hero, where should I start to poke ?

cgaspard commented 11 years ago

First you should check to see if you have the right version of Mantis. The latest is dependant on the mc_login api call. Which was added in 1.2.12.

I will update the documentation to make note of this.

bokkepoot commented 11 years ago

I'm using current stable 1.2.15 , so that shouldn't be a problem

Daouneizh commented 11 years ago

Hi, I tested with both 1.2.12 version and 1.2.15 version and in fact, it works with 1.2.12 whereas 1.2.15 doesn't work. May you update your api for next version ?

BTW, your project is very cool and usefull, thank you !!!

cgaspard commented 11 years ago

Thanks for testing that. I've been trying to get around to testing newest mantis. I think I should be able to make it compatible with both versions. I''ll let you know when I am able upgrade my mantis install, and figure out what changed to break it.

Daouneizh commented 11 years ago

Hi, thanks for your feedback

cgaspard commented 10 years ago

HI Daeouneizh. Just wanted to double check if you were able to solve your 1.2.15 issue. We've made some recent improvement in the kanban, so I'm curious if this solved any of the login issue you were having.

Nicklas2751 commented 10 years ago

Hello, i have the Same problem and so i started to debugg the Code with Firefox. On Login i became this Exception:" name: NS_ERROR_FAILURE lineNumber: 151 filename: ".../js/soapclient.js" ... "

I looked at lineNumber 151 in soapclient.js. At this Position is the async = false and it makes: xmlHttp.send(null);

And after this cames the Exception.

I hope i could help you.

cgaspard commented 10 years ago

Hi Nicklas2751,

I'll do my best to help you figure out the problem. Couple questions.

Do you have the Mantis Kanban pages loaded on the same server that contains the maintis installation? If not, then you need to do some extra configuration on your web server to allow cross domain ajax calls.

What version of Firefox are you running?

What version of Mantis are you running?

Have you setup the config.js file? Default filters aren't required, but it does make the system run a bit smoother.

If you have this installation on a public server, I could try to do some diagnosis on this problem if you don't mind me trying to login.

Corey

Nicklas2751 commented 10 years ago

Hi Corey,

the Mantis installation and the Mantis Kanban pages are on the Same server. My Firefox Version is: 26.0 My Mantis Version is: 1.2.15 For the Config i copied the smaple config and adapted it for me.

My Mantis Kanban runs on: http://dev.nicklas.elaon.de/mantiskanban-master/ The Username an Password for an Test user can i send you if you give me your E-Mail address. ;)

cgaspard commented 10 years ago

@Nicklas2751, my email is cgaspard @ gmail com. Send me a login, and I'll try to debug the client to figure it out.

cgaspard commented 10 years ago

One thing I notice, I think there may be a bug in that the code doesn't read the mantis connect url from the default config on the first login.

Also, looking at your config.js make sure you set the mantis connect url to the full path to the php file. Like this:

http://dev.wiegandt.eu/mantisbt-1.2.15/api/soap/mantisconnect.php

Nicklas2751 commented 10 years ago

You sholud have an E-Mail from Mantis.

cgaspard commented 10 years ago

Didn't get an email.

cgaspard commented 10 years ago

Any luck?

Nicklas2751 commented 10 years ago

After an short downtime of my server, have i recreated an useraccount for you. You should have an E-Mail now. If not please check your spam folder. ;)

cgaspard commented 10 years ago

Okay I think I see what the problem is. I was telling you to access through the wrong urls.

To login, go here:

http://dev.wiegandt.eu/mantiskanban-master/

Enter this into the mantis URL

http://dev.wiegandt.eu/mantisbt-1.2.15/api/soap/mantisconnect.php

The urls have to be in the same domain. Also, make sure you have access to a project. My user acocunt doesn't, so I can't fully login.

Hope that helps.

Corey

Nicklas2751 commented 10 years ago

It works. Thank you very much. :)