Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 133196

Summary: Problems submitting reports to QNX PRZilla
Product: z_Archived Reporter: Alex Chapiro <achapiro>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mik.kersten
Version: 0.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Error message
none
Two Input new Bug pages
none
Editor corrupted display
none
Problem illustration
none
mylar/context/zip
none
Browser dialog
none
Login screen none

Description Alex Chapiro CLA 2006-03-24 14:10:51 EST
I tried to create new report. The strange thing that I couldn't find it in the place where it was supposed to be (New->Other -> Mylar). Then I found this wizard in the Task list pull down menu. After filling the form and pressing Finish button I got an error message about login problem (which was certainly wrong) and call stack trace in .log:

java.lang.NullPointerException
at org.eclipse.mylar.internal.bugzilla.ui.wizard.AbstractBugzillaWizardPage.setPlatformOptions(AbstractBugzillaWizardPage.java:738)
at org.eclipse.mylar.internal.bugzilla.ui.wizard.AbstractBugzillaWizardPage.createControl(AbstractBugzillaWizardPage.java:381)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1023)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1016)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1006)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1004)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:743)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:645)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:811)
at org.eclipse.jface.window.Window.open(Window.java:789)
at org.eclipse.mylar.internal.tasklist.ui.actions.NewRepositoryTaskAction.run(NewRepositoryTaskAction.java:67)
at org.eclipse.mylar.internal.tasklist.ui.actions.NewRepositoryTaskAction.run(NewRepositoryTaskAction.java:79)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:392)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Mik Kersten CLA 2006-03-27 20:59:40 EST
The New Repository Task action is now in the New wizards as it should be (fyi that fix was part of bug 133196 which will also provide additional UI consistency).

That exception occurred because the platform could not be resolved, and I've added a guard to prevent it.  But that exception is innocuous and shouldn't have prevented a bugzilla submission.  Are you able to submit bugs, or is the login-related error causing that to fail?  If so, what is the exact text on the login screen?
Comment 2 Alex Chapiro CLA 2006-03-28 09:30:17 EST
Created attachment 37072 [details]
Error message

This is the error message I got while creating Bugzilla report.
Comment 3 Alex Chapiro CLA 2006-03-28 09:32:08 EST
Using the Eclipse update site, last Friday I installed the latest available version of Mylar including bugzilla repository support. I was looking for New report wizard in File->New->other->Mylar (as defined in the documentation), but didn't find it overthere. That's why I opened this wizard from the task list. I easy can submit reports via the web interface. My credentials are correct and enough to do it.
Comment 4 Mik Kersten CLA 2006-03-28 14:23:47 EST
The Fine->New->Other->New Repository Task shortcut was just added yesterday, so for now the right way to create new bugzilla reposts is via the task list.

We still have no indication of the source of the failure, assuming that your login information is correct and that you use the right path to the bugzilla server (e.g. https://bugs.eclipse.org/bugs).  Are you able to create Bugzilla queries and post comments?

Rob: please look into this once you have input on the above.  For starters we need to clean up the exception handling for LoginException, and consider including the stack in that failure so that we can better diagnose.
Comment 5 Alex Chapiro CLA 2006-03-28 17:41:56 EST
I have the permission to update Eclipse Bugzilla. However this case I reported about happend when I tried to create report using our corporative Bugzilla repository, which should be the same. I just don't want to contaminate Eclipse repository with my test reports. Connection seems to be OK because I validated it when added repository. Besides that, I see bugs assigned to me in the task list.
Comment 6 Robert Elves CLA 2006-03-29 12:39:42 EST
Alex, could you double check that the output for your corporate bugzilla server has not been modified (i.e. html output is different on the new bug page compared to unmodified bugzilla output). Currently we parse these pages to get the necessary bug information. This unfortunately is a very brittle solution but will have to hold us over until some form of web services api is implemented.
Comment 7 Alex Chapiro CLA 2006-03-29 13:44:14 EST
Of course they are slightly different. Moreover, in Eclipse Bugzilla there is one more (2-nd) page in the new bug creating process. 
Should I change the status of this bug report to Resolved-Later?
Comment 8 Robert Elves CLA 2006-03-29 14:52:24 EST
Could you attach a screenshot (or better yet the html) of the suspect page(s)? That would help us determine a solution.
Comment 9 Alex Chapiro CLA 2006-03-29 15:22:52 EST
Created attachment 37235 [details]
Two Input new Bug pages

Here you go
Comment 10 Robert Elves CLA 2006-03-29 16:54:18 EST
Is PRZilla an internal Bugzilla customization by qnx or an externally available product? 
Comment 11 Alex Chapiro CLA 2006-03-29 17:01:32 EST
This is the Bugzilla customisation not a separate product
Comment 12 Robert Elves CLA 2006-03-29 17:31:44 EST
Unfortunately we do not support customized bugzilla repositories. We do our best to keep the repository support within Mylar generic but changes to Bugzilla presentation layer are problematic due to the current reliance on screen scraping.  
This being said, you could extend Mylar to work with your particular repository. 

If possible, could you post on this report what is and is not working so that we have a record to refer to when/if we start on such an extension? Thanks.
Comment 13 Alex Chapiro CLA 2006-03-30 09:57:57 EST
I list below some discrepancies in behavior between WEB interface and Mylar client I ran into while testing Mylar.
1)Search report - selection of Product does not affect content of Components combo.
2) Search report - keywords search. Opens Search view, informs that several occurences was found, but view itself is empty.
3)While connecting to Eclipse bugzilla, I provide any User ID and password, then press Validate button and always get message box "Autentificational redentials are valid. Maybe the cause of such behavior is that my workspace already has one repository, but this looks confusing.
4) Bug editor image looks corrupted (see next attachment). It does not happen always. I easy reproduce it if I scroll long report to the bottom, then start to scroll up. Probably, this is SWT issue.
5) In bug report I typed new comment, then pressed Submit. The only result was this button disabling. Stil had "*" in the Editor tab, editor content has not changed. If I re-opened updated report, I saw there is no submitted changes.
6)This is rather request: no search in report, I tried a big one, and it was very problematic to find something in it.
7) A lot of fields editable throug the WEB interface are not editable in the client editor.
Comment 14 Alex Chapiro CLA 2006-03-30 09:58:51 EST
Created attachment 37322 [details]
Editor corrupted display
Comment 15 Robert Elves CLA 2006-03-30 14:42:05 EST
Great. Thanks for this feedback Alex.

1)Search report - selection of Product does not affect content of Components
combo.
 
  Yes.  This should be submitted as a new bug report. If you could submit this it would be great. We would like to be able to credit the individuals who bring up these bugs.


2) Search report - keywords search. Opens Search view, informs that several
occurences was found, but view itself is empty.

  I assume this is due to the QNX Bugzilla issues. I'll investigate handling this better as part of bug# 132395.

3)While connecting to Eclipse bugzilla, I provide any User ID and password,
then press Validate button and always get message box "Autentificational
redentials are valid. Maybe the cause of such behavior is that my workspace
already has one repository, but this looks confusing.

   I'm unable to reproduce this one. Can you provide more context?

4) Bug editor image looks corrupted (see next attachment). It does not happen
always. I easy reproduce it if I scroll long report to the bottom, then start
to scroll up. Probably, this is SWT issue.

  I'm in the process of fixing this at the moment. FormText widget has turned out to be problematic so will be moving to StyledText.

5) In bug report I typed new comment, then pressed Submit. The only result was
this button disabling. Stil had "*" in the Editor tab, editor content has not
changed. If I re-opened updated report, I saw there is no submitted changes.

   This again is probably the result of the problems communicating with QNX bugzilla.  We'll need handle this error properly. I'll tack this on to the previously mentioned report.

6)This is rather request: no search in report, I tried a big one, and it was
very problematic to find something in it.

  Yes. This is another candidate for a new bug report (feature request).


7) A lot of fields editable throug the WEB interface are not editable in the
client editor.

  We are aware of attachments and keywords. The others should be modifiable. There was a bug which was causing changes to the combo boxes to be ignored but I have fixed that as part of my recent work on the bug editor.
Comment 16 Alex Chapiro CLA 2006-03-30 14:57:26 EST
>>3)While connecting to Eclipse bugzilla, I provide any User ID and password
I made a mistake typing:
http://bugs.eclipse.org/bugs (instead of https) and got validation  OK. I think it is still a bug.
OK, I'll open a couple of new reports as you asked (not the bug mentioned above - it is up to you).
Comment 17 Mik Kersten CLA 2006-03-30 18:31:10 EST
That's such a common typo.. Rob, make sure that validation fails for that.
Comment 18 Robert Elves CLA 2006-04-12 19:04:02 EDT
Alex: Regarding the bug submission problems you mentioned, we are going to move to an xml/rdf based solution for gathering bug information. This may solve the problems you encountered when submitting to your corporate Bugzilla server. Watch bug# 136219 for updates on the xml/rdf conversion.
Comment 19 Robert Elves CLA 2006-05-15 19:29:42 EDT
Alex, 

The rdf/xml conversion has been completed. Could you try the latest developer release of Mylar against your internal custom bugzilla and let us know if you have any difficulties. Thanks.


Developer Release Update Site: download.eclipse.org/technology/mylar/update-site/dev
Comment 20 Alex Chapiro CLA 2006-05-17 11:37:14 EDT
Created attachment 41737 [details]
Problem illustration

I updated plugins and tried to create new bug report. A sort of small browser window came up. When I clicked to it, I got the frozen IDE (see my attachment)
Comment 21 Mik Kersten CLA 2006-05-17 11:51:46 EDT
Rob: this happened to me yesterday too, when my internet connection died on submission (browser window came up, disappeared, and Eclipse froze as in the screenshot and needed to be killed).  Seems that we recently blotched sometihng with the error handling--I just tried and you can replicate it by trying to assign a non-existant Assigned To email address.

Alex: are queries and opening existing reports working?
Comment 22 Robert Elves CLA 2006-05-17 13:36:43 EDT
Created attachment 41759 [details]
mylar/context/zip

Done. Fix is in head. Here is context for new bug submission fix.
Comment 23 Alex Chapiro CLA 2006-05-17 13:59:13 EDT
Reply to comment #21
Query and report opening work fine. I noticed just a few minor issues:
- bugzilla URL in my case is quite long, everybody uses alias "przilla"; browser understands it well, but I couldn't use it while defining the new task repository
- All the lists in combo boxes seem to be unsorted It was a real pain to find target milestone for example
- in Task List there are no column titles ("Description" is an exception)
Comment 24 Mik Kersten CLA 2006-05-17 14:44:41 EDT
Good to hear.  Regarding your comments:
- We do not support these kinds of aliases because the URL is used to uniqely identify the task.
- Rob is working on fixing this now.
- That's correct, the first column is just icon/activation, and the next three are status columns that don't have enough room for text.  However, we do plan on adding support for configurable columns (bug 126788).

We will have a new build available for you to try submission on again today, since our goal is to have 0.5.2 (scheduled for Friday) to support custom repositories such as QNX's.
Comment 25 Mik Kersten CLA 2006-05-17 18:45:55 EDT
Alex: could you try the latest dev build and let us know what errors you get on new bug submission if you see any?

  http://www.eclipse.org/mylar/dl.php
Comment 26 Alex Chapiro CLA 2006-05-18 09:56:56 EDT
Creation of the new report still does not work. After filling the form I press Finish and get a small dialog (the same I mentioned in the previous message). There is only one button OK. I press it and just return to the same form for a new report creation. Thanks God, it does not create a new report:-). THere is nothing in Eclipse Error Log.
Comment 27 Robert Elves CLA 2006-05-18 13:12:56 EDT
Alex, I assume this is a browser dialog again, what is the error message?
Comment 28 Alex Chapiro CLA 2006-05-18 13:40:10 EDT
No Error. See attachment.
Comment 29 Alex Chapiro CLA 2006-05-18 13:41:06 EDT
Created attachment 41915 [details]
Browser dialog
Comment 30 Robert Elves CLA 2006-05-18 14:46:09 EDT
From the looks of this there may be a problem with the email address. Could you confirm that your user name and password are valid in the Task Repositories view? Note that we require the User Name to be the email address used with Bugzilla.
Comment 31 Alex Chapiro CLA 2006-05-19 10:30:54 EDT
If I validate settings, I get a message "Authentication credential is valid". I can submit requests, I can open any particular report, but I cannot create new one or edit existing one. Of course I can do it using WEB interface. What can I check more?
Comment 32 Mik Kersten CLA 2006-05-19 11:46:03 EDT
Is your bugzilla username your email address, or are these different in PRZilla?  Have you ever seen PRZilla give that "Confirm Match" message when submitting via the web UI?  We need to figure out why it's unsuccessfully trying to match an email address.
Comment 33 Alex Chapiro CLA 2006-05-19 14:00:00 EDT
Created attachment 42052 [details]
Login screen

This is a snapshot of my login screen. I've never seen "Confirm Match" message before.
Comment 34 Mik Kersten CLA 2006-05-22 19:42:28 EDT
We still haven't narrowed this down since we can't reproduce.  However, today's 0.5.2 release fixed a problem that was related.  Please try that and let us know if anything different happens on trying to submit a new report.
Comment 35 Alex Chapiro CLA 2006-05-23 17:07:23 EDT
Now i've got an exception while create new query:

An internal error occurred during: "Synchronizing queries: bugzilla".

java.lang.AbstractMethodError: org.eclipse.mylar.provisional.tasklist.AbstractRepositoryConnector.getChangedSinceLastSync(Lorg/eclipse/mylar/provisional/tasklist/TaskRepository;Ljava/util/Set;Ljava/util/Date;)Ljava/util/List;
at org.eclipse.mylar.provisional.tasklist.SynchronizeQueryJob.run(SynchronizeQueryJob.java:84)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

Before that I updated to 0.5.2, cleaned repository list and create new repository item/ While creating repository item I validated my Bugzilla credentials.
Comment 36 Robert Elves CLA 2006-05-23 17:29:40 EDT
It appears as though you have two conflicting versions of Mylar installed.
Make sure you've updated all of the features to 0.5.2. Partial updates can happen if you used "Search for updates to the currently installed features". For more information please see:

http://www.eclipse.org/mylar/doc/faq.php#install
Comment 37 Alex Chapiro CLA 2006-05-23 18:05:47 EDT
Cleaning solved the last problem (I managed to get rid of 0.5.2 & 0.5.1 features, but not 0.5.0 because uninstall option for these features stayed always disabled).
However either update or create new report caused the same Confirm Match message. I've no idea what's wrong. Do you have  plugin versions that provide runtime tracing?
Comment 38 Alex Chapiro CLA 2006-05-23 18:10:27 EDT
One more thing I can try tomorrow. I'll create new copy of Eclipse with new workspace and fresh install MyLar to be sure that there is no impact of any old garbage (I have some suspicions that this is a case).
Comment 39 Robert Elves CLA 2006-05-23 18:20:33 EDT
Runtime tracing wouldn't help us here since the only error we get is bugzilla's error page.  However I'll look into dumping the error page and what got submitted to the error log.

Note that if you can't uninstall, you could always delete the old plugins and features from their respective directories. With a clean install, let us know what fails and we'll go from there. Thanks for your patience Alex!
Comment 40 Alex Chapiro CLA 2006-05-24 09:44:16 EDT
I'm sorry, but clean installation RC5 + 0.5.2 didn't change anything. Error log is empty.
Any ideas? Could it be helpful if I trace transaction under debugger to grab any data of interest?
Comment 41 Robert Elves CLA 2006-05-24 16:35:48 EDT
Okay, there is a new dev build available for you that will output to the log all the attributes being sent when this error occurs. Hopefully from that we can track down the problem. The dev build update site is: download.eclipse.org/technology/mylar/update-site/dev
Comment 42 Alex Chapiro CLA 2006-05-24 17:54:48 EDT
OK, I see now where the bug is. They stored originator's name as "AChapiro@qnx.com", I connected to repository as "achapiro@qnx.com" which is equivalent. However somewhere (in your code or in Bugzilla server) IDs are compared as a case sensitive values. When I connected to repository as "AChapiro@qnx.com", the update transaction completed successfully.

Below is the .log file content (after error).



!SESSION 2006-05-24 17:12:54.453 -----------------------------------------------
eclipse.buildId=I20060519-1206
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.mylar.core 1 0 2006-05-24 17:40:53.593
!MESSAGE Mylar: bug_status=NEW | resolution= | bug_id=27121 | rep_platform=All | product=TOOLS | op_sys=All | component=TOOLS-IDE | version=unknown | priority=Medium | bug_severity=Non-critical | assigned_to=AChapiro@qnx.com | target_milestone=IDE 4.0 | reporter=MKisel@qnx.com | dependson= | blocked= | bug_file_loc= | newcc=achapiro@qnx.com | keywords= | creation_ts=2005-09-02 08:55 | short_desc=Stacksize field in Project Properties->Compiler tab has no effect | delta_ts=2005-12-07 13:27:23 | cc=Tools_IDE_Mgrs@qnx.com | longdesclength=6 | , source: java.lang.Class
Comment 43 Robert Elves CLA 2006-05-24 18:13:15 EDT
I guess under certain conditions/commands Bugzilla doesn't like different capitalization of email addresses. So all is working now I take it?  
Comment 44 Alex Chapiro CLA 2006-05-25 10:23:19 EDT
Yes, it works ok when I update existing report. I didn't try to create new one, but I believe it should work (next time I create new report, I'll try it). What I want to mension is:
- I never input "AChapiro", always "achapiro"; this is the Bugzilla who capitalizes the first two letters;
- It newer causes any problem while I get an access through WEB interface.
Comment 45 Robert Elves CLA 2006-05-30 17:16:19 EDT
Sounds like you have it working. I'm going to mark this report resovled but feel free to re-open or open a new report if you discover any problems.
Comment 46 Alex Chapiro CLA 2006-05-30 17:21:57 EDT
Actually, I just have a work around :-) Speaking in general, it does not work.
Comment 47 Mik Kersten CLA 2006-05-30 17:33:45 EDT
Rob, should we consider always treating the email address as lower case (via String.toLowerCase)?  
Comment 48 Robert Elves CLA 2006-05-30 18:29:28 EDT
I can't re-produce with Bugzilla 2.22 so assume this is unique to PRZilla. This is not likely something we will be able to fix on our end.  We'd like to put this information in the online FAQ. I'm curious, are you able to force your email to lower case in your PRZilla email preferences? 
Comment 49 Alex Chapiro CLA 2006-05-31 10:08:23 EDT
I just don't understand what is the difference between xxxx@yyyy.com and XXXX@YYYY.com? As a mail addresses they are similar, don't they? At least, it is very confusing. Our Bugzilla administrator told me that she could enforce using small letters in ID, but in my oppinion it is barely better because for example some people could like to type e-mail address starting with capital letter(s).
One particular clue: our Bugzilla uses network identification service to validate  user's credentials. And it seems to work OK when I connect to the repository using MyLar, but it fails with the same ID and password while updating or creating new report. It looks starnge for me, doesn't it?
Anyway, it's up to you how and when to treat this problem. I just step aside :-)