Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-03-2012, 04:48 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Bugzilla: How to get the patch file list for each bug?

I am using the export facility of the bugzilla, where one can export information about bugs. I need the fixed files also along with all the other information. Bug there is no way to extract that

Here is an example bug from the bugzilla repository, where is the fixed file list encoded? Even though the bug is "fixed" or "resolved" i do not see that information in an xml exported output by bugzilla.

          <creation_ts>2003-09-12 12:59:00 -0400</creation_ts>
          <short_desc>unit tests failing due to misuse of getAbsolutePath()</short_desc>
          <delta_ts>2003-09-17 03:06:00 -0400</delta_ts>
          <op_sys>Windows XP</op_sys>
          <reporter name="Jim Hugunin">jim-aj</reporter>
          <assigned_to name="Adrian Colyer">adrian.colyer</assigned_to>




          <long_desc isprivate="0">
            <who name="Jim Hugunin">jim-aj</who>
            <bug_when>2003-09-12 12:59:40 -0400</bug_when>
            <thetext>Many of the unit tests in org.aspectj.ajdt.ajc.BuildArgParserTestCase and in
org.aspectj.ajde.StructureModelTest are failing for me.  These failures appear
to be due to the behavior of File.getAbsolutePath().  My suspicion is that these
failures are caused by recent changes to the structure model code to remove
calls to File.getCanonicalPath().

These failures all come under Win XP using either jdk 1.4.2 or jdk 1.3.x from
SUN.  To reproduce the failures, you need to launch eclipse using "-data
c:/path_to_workspace".  Note the lowercase 'c' in the path.  If I change this to
"-data C:/path_to_workspace", then all of the tests will pass.

Here are the traces from two of the failures:

java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
    at java.util.ArrayList.RangeCheck(
    at java.util.ArrayList.get(
junit.framework.ComparisonFailure: expected:&lt;c...&gt; but was:&lt;C...&gt;
    at junit.framework.Assert.assertEquals(
    at junit.framework.Assert.assertEquals(

The filenames that are failing to compare above differ only in the initial
capitalization of the 'c', e.g.
          <long_desc isprivate="0">
            <who name="Jim Hugunin">jim-aj</who>
            <bug_when>2003-09-12 13:01:51 -0400</bug_when>
            <thetext>I'm raising this to a P1 bug because someone needs to investigate this bug
before the 1.1.1 release.  It's possibly just an issue with the test code;
however, it might also indicate a subtle and dangerous bug in the structure
model code.</thetext>
          <long_desc isprivate="0">
            <who name="Adrian Colyer">adrian.colyer</who>
            <bug_when>2003-09-12 15:00:18 -0400</bug_when>
            <thetext>I confirm I can reproduce the failures. I've investigated all the 
BuildArgParserTestCase ones and they were harmless, but easy to fix - I hate 
failing test cases.

Now looking at the StructureModelTest failures - potentially more serious.

(Just appending progress to save anyone else duplicating work).</thetext>
          <long_desc isprivate="0">
            <who name="Adrian Colyer">adrian.colyer</who>
            <bug_when>2003-09-12 15:37:21 -0400</bug_when>
            <thetext>Now fixed. The StructureModel test cases were indeed hiding a more subtle and 
serious bug - findNodeForSourceFile and findNodeForSourceLine were using
absolute path instead of canonical path to look for matches - and so not finding
corresponding nodes unless the path happened to match. This is the same problem 
that caused Andy to lose his outline view from AJDT.

I changed three files. If anyone has the time to buddy-check my changes 
(sensible precaution this close to ship) I'd appreciate it. The files are:

          <long_desc isprivate="0">
            <who name="Adrian Colyer">adrian.colyer</who>
            <bug_when>2003-09-12 15:37:55 -0400</bug_when>
          <long_desc isprivate="0">
            <who name="Mik Kersten">mik.kersten</who>
            <bug_when>2003-09-17 03:06:00 -0400</bug_when>
            <thetext>At one point in the past those find methodhs did use canonical paths, but my 
over-optimistic migration to absolute paths changed that.  

I reviewed these changes and they are all correct.  </thetext>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft to patch 17-year-old computer bug Jeebizz Linux - News 0 02-05-2010 04:39 PM
how to do the Patch update and bug fix in AS 3.0? sathyguy Linux - Enterprise 3 08-31-2006 07:44 AM
LXer: Getting startd with Bugzilla for bug tracking LXer Syndicated Linux News 0 06-27-2006 05:21 AM
Better bug tracking/reporting software? Alternative to bugzilla? jon_k Linux - Software 1 07-11-2005 04:03 AM
Windowmaker Flickering Bug Patch Ian Linux - Software 1 06-04-2004 04:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration