sammyrulez / mantis-idea

Automatically exported from code.google.com/p/mantis-idea
Other
0 stars 0 forks source link

MantisConnect doesn't support Basic HTTP authentication #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install plugin
2. Open the configuration window
3. Make sure server is forced to use LDAP auth
4. Enter URL and credentials 
5. Click the "Load Projects" button
6. Get the following stacktrace:

(401)Authorization Required
org.mantisbt.connect.MCException: (401)Authorization Required
    at org.mantisbt.connect.axis.MCSession.getEnum(MCSession.java:464)
    at
com.kyub.idea.plugin.mantis.service.ServiceManager.init(ServiceManager.java:52)
    at
com.kyub.idea.plugin.mantis.gui.config.ConfigForm.refreshProjects(ConfigForm.jav
a:113)
    at
com.kyub.idea.plugin.mantis.gui.config.ConfigForm.setData(ConfigForm.java:53)
    at
com.kyub.idea.plugin.mantis.MantisIntegration.createComponent(MantisIntegration.
java:122)
    at
com.intellij.openapi.options.ex.ExplorerSettingsEditor.b(ExplorerSettingsEditor.
java:35)
    at
com.intellij.openapi.options.ex.ExplorerSettingsEditor.access$1400(ExplorerSetti
ngsEditor.java:121)
    at
com.intellij.openapi.options.ex.ExplorerSettingsEditor$11.run(ExplorerSettingsEd
itor.java:4)
    at
com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocat
or.java:16)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:63)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:87)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
    at java.awt.Dialog$1.run(Dialog.java:1045)
    at java.awt.Dialog$3.run(Dialog.java:1097)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1095)
    at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPe
erImpl.java:22)
    at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.ja
va:18)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:813)
    at
com.intellij.ide.actions.ShowSettingsUtilImpl.showExplorerOptions(ShowSettingsUt
ilImpl.java:3)
    at
com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUti
lImpl.java:45)
    at
com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.j
ava:2)
    at
com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:104)
    at
com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:102)
    at
com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButt
on.java:108)
    at java.awt.Component.processEvent(Component.java:5806)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4413)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2440)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:118)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:87)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: (401)Authorization Required
    at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:754)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
    at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invokeTransport(AxisClient.java:150)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:289)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2896)
    at org.apache.axis.client.Call.invoke(Call.java:2882)
    at org.apache.axis.client.Call.invoke(Call.java:2559)
    at org.apache.axis.client.Call.invoke(Call.java:2482)
    at org.apache.axis.client.Call.invoke(Call.java:1867)
    at
org.mantisbt.connect.axis.MantisConnectBindingStub.mc_enum_status(MantisConnectB
indingStub.java:1250)
    at org.mantisbt.connect.axis.MCSession.getEnum(MCSession.java:456)
    ... 50 more

Original issue reported on code.google.com by alexey.f...@gmail.com on 14 Oct 2008 at 10:27

GoogleCodeExporter commented 9 years ago
Related bugs:

Mantis BT/MantisConnect: http://www.mantisbt.org/bugs/view.php?id=9394
Axis2 1.4: https://issues.apache.org/jira/browse/AXIS2-4060 (started here:
http://www.nabble.com/wsdl2java-and-basic-authentication-td19743802.html)

Original comment by alexey.f...@gmail.com on 14 Oct 2008 at 10:30