Bugzilla Integration Issue

Nandula Bala, modified 13 Years ago.

Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi

I am trying to integrate Klaros with Bugzilla server(Bugzilla server requests gets redirected to https). I am able to login when Bugzilla server is accessed separately with the user credentials. When the URL is being validated using Klaros , the URL is found to be valid but the credentials used is not working. I am getting the following detail on the tomcat console.

HttpMethodDirector:439 - I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server <<bugzilla.server.net>> failed to respond.

Any additional settings for Bugzilla is to be made? I have seen the documentation and it says it does not need any but why should the request get failed? Authentication failure is another issue.

Regards
Bala
thumbnail
Tobias Schmitt, modified 13 Years ago.

RE: Bugzilla Integration Issue

Padawan Posts: 71 Join Date: 2/12/09 Recent Posts
Hi Bala,

normally Bugzilla doesn't need any additional configuration. We currently try to reproduce your problem and we will inform you as soon as we know something new. I guess you are using a self-signed SSL certificate?


Regards,

Tobias Schmitt
Nandula Bala, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi Tobias,

We have applied SSL certificate given by a CA. This Bugzilla Server is on a public IP and only identified ports are exposed for any external interactions. I hope these design considerations have been taken into account as part of Klaros Software v3.1 which i am using for test purposes.

Regards
Bala
thumbnail
Heiner Westphal, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 3/2/09 Recent Posts
Hello Bala,

using a real certificate is supposed to work regardless.
Only self-signed certificates sometimes cause headaches.

And yes, this is one of the envisioned setups as far, as I understand it.
Just the redirection from http to https does not sound familiar.

When configuring the bugzilla-URL in klaos, you already know it is SSL-secured.
Thus you can configure the https-URL up front. No need for redirection.
Or am I missing something?

Regards,

Heiner
Nandula Bala, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi Westphal,

Probably i will rephrase "http 2 https redirection" as part of Bugzilla Configuration setup. and hence the request submitted from the browser automatically uses https for processing the requests. The browser already has this bugzilla server URL included as a trusted site. Sorry if i have misstated the information pertaining to the context.

Please do let me know which configuration information is missed out as part of Issue Management owing to which a Null Pointer Exception is happening.

Regards
Balasubramanyam N
emoticonemoticon
Nandula Bala, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi WestPhal,

I also have one other question in this regard. In Bugzilla setup we have Classification / Product / Component created as part of the defect management categorization. When configuring Issue Management System in Klaros , what name should be entered for Project?

Is it the Classification or Product or Component? Ideally i would think it is the Product but i would like to know which one is considered by Klaros as Project Name? Or am i missing a point here.

Or should this be the same name as the base project that we created in Klaros?

Regards
Balaemoticon
thumbnail
Heiner Westphal, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 3/2/09 Recent Posts
You are right. Bugzillas Product is what klaros referst to as Project in the Issue configuration.

BTW. We managed to reproduce the connection-problem using another bugzilla 3.6 instance.
I filed it as KLAROS-969 "cannot connect to bugzilla 3.6"

Expect it to be fixed in the next release. Maybe we come up with a workaround
before - if we find one.

Sorry for the inconvenience.

Regards,

Heiner

P.S.: What is really getting me down is that eclipse-mylyn does not seem to have this problem
and Klaros uses the same bugzilla connector library.
Nandula Bala, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi Westphal

I have also figured out in the process that the pop up which Klaros shows where the User credentials can be entered , even without entering the password , when the user hits an enter , Authentication failure message is being displayed. Can we get an alert asking the user if the credentials does not have a password before submitting the request to the server for validation?

Most importantly i would like to know what is causing the Null Pointer Exception? Is the form being displayed has some hidden parameters which is getting set to null , hence any method call set on this object reference is throwing a Null Pointer Exception? I am sure the form is wanting to capture some important information. Let me know if i am wrong.

Also when can i expect the next build release of Klaros with fixes to Bugzilla Integration. Any future date that i can revisit.emoticon

Regards
Bala
thumbnail
Heiner Westphal, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 3/2/09 Recent Posts
Since Klaros must be able to create issues, anonymous access to bugzilla will not be sufficient.
That's why we do not offer bugzilla access without credentials.

The NullPointerException looks like a bug in Klaros. We are already looking after it.

Klaros 3.1.1 is scheduled for end of September. Expect it around the 27th.

Best Regards,

Heiner
Nandula Bala, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi Westphal,

While i wait for September 27th for the next version release , will the document contain instructions to migrate from one version to another? I am thinking about any possible schema changes that can come in and if the version needs to update the schema, will it execute a patch script on top of the existing schema or a whole new schema will get created and we redo on the entire exercise?

Anonymous account will not be entertained in our Bugzilla server as we have domain based email ids as user ids and so that is ruled out. More so with groups created and privileges set on various user identities for various admin activities in Bugzilla, probably it may not work out in my case.

Regards
Bala
thumbnail
Tobias Schmitt, modified 13 Years ago.

RE: Bugzilla Integration Issue (Answer)

Padawan Posts: 71 Join Date: 2/12/09 Recent Posts
Hi Bala,

You don't have to worry about migration. If there are schema changes between two release, Klaros will automatically update the database schema (e.g. create new tables or columns). If it is necessary to migrate the data in the database, Klaros will prompt you to start the migration by entering username and password of an administration account. So there is no need of executing sql scripts or creating a new database schema.


Regards,

Tobias Schmitt
thumbnail
Heiner Westphal, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 3/2/09 Recent Posts
I guess it has something to do with the redirect you mentioned:
Bugzilla server requests gets redirected to https

Could you give some more info about your setup?
How is that redirection implemented?
Is the SSL-Certificate a self signed one?

In the meantime you could configure klaros to use the URL
your browser gets redirected to just to see if this changes
anything.

Best regards,

Heiner
Nandula Bala, modified 13 Years ago.

RE: Bugzilla Integration Issue

Youngling Posts: 13 Join Date: 9/7/10 Recent Posts
Hi Westphal,

I am using Bugzilla 3.6 version. As part of Issue Management configuration in Klaros , i have given a valid url and it got validated upon the click of the button "Validate the URL". The following messages are shown in the Klaros console:

ERROR - 14:42:15 - Bugzilla authentication failed (wrong user name or password).(Though user credentials are correct)
INFORMATION - 14:41:22 - Successfully connected. The URL http://bugzilla.server.net/ is valid.

The following is observed on the Tomcat Console.(What is not provided as part of the Klaros configuration for Issue Management which is throwing a Null Pointer Exception?)

SEVERE: /pages/subviews/configure/issueManagements.jspx @174,106 value="#{element.type}": Error writing 'type' on type de.verit.klaros.web.beans.wrapper.IssueManagementWrapper
j[b]ava.lang.NullPointerException
at de.verit.klaros.web.beans.wrapper.IssueManagementWrapper.setType(IssueManagementWrapper.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:69)
at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:100)
at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
at org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
at javax.faces.component.UIInput.updateModel(UIInput.java:771)
at javax.faces.component.UIInput.processUpdates(UIInput.java:703)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at com.icesoft.faces.component.ext.HtmlDataTable.processKids(HtmlDataTable.java:342)
at com.icesoft.faces.component.ext.HtmlDataTable.iterate(HtmlDataTable.java:293)
at com.icesoft.faces.component.panelseries.UISeries.processUpdates(UISeries.java:343)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIForm.processUpdates(UIForm.java:260)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1081)
at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:728)
at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:52)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:51)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
at java.lang.Thread.run(Thread.java:619)
Sep 9, 2010 1:57:04 PM com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

Regards
Bala