Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 268207 - Repository connection error w/ Bugzilla 3.2.2 and Mylyn 3.0.4, 3.0.5, 3.1, & 3.3 repository error has occurred
Summary: Repository connection error w/ Bugzilla 3.2.2 and Mylyn 3.0.4, 3.0.5, 3.1, & ...
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 283916 308549 (view as bug list)
Depends on: 269803
Blocks: 269335
  Show dependency tree
 
Reported: 2009-03-11 15:35 EDT by David Hill CLA
Modified: 2012-03-08 10:15 EST (History)
8 users (show)

See Also:


Attachments
link that give more information (12.88 KB, application/octet-stream)
2009-03-13 17:19 EDT, Frank Becker CLA
no flags Details
link (40.17 KB, image/gif)
2009-03-13 17:24 EDT, Frank Becker CLA
no flags Details
Error on my screen (64.57 KB, image/jpeg)
2009-03-16 11:53 EDT, David Hill CLA
no flags Details
Another error screenshot (57.69 KB, image/jpeg)
2009-03-16 16:43 EDT, David Hill CLA
no flags Details
Screenshot before credentials (39.42 KB, image/jpeg)
2009-03-18 15:23 EDT, David Hill CLA
no flags Details
Screenshot after credentials (40.54 KB, image/jpeg)
2009-03-18 15:23 EDT, David Hill CLA
no flags Details
Configuration (1.25 KB, application/rdf+xml)
2009-08-06 18:25 EDT, David Hill CLA
no flags Details
Configuration (18.25 KB, application/rdf+xml)
2009-08-10 17:48 EDT, David Hill CLA
no flags Details
Mylyn 3.3.0 Log File (1.08 KB, application/octet-stream)
2009-11-10 13:41 EST, David Hill CLA
no flags Details
Mylyn 3.3.1.I20091113 Log File (8.11 KB, application/octet-stream)
2009-11-16 12:32 EST, David Hill CLA
no flags Details
Mylyn 3.3.2.I20100116 Log File (8.84 KB, application/octet-stream)
2010-01-19 12:46 EST, David Hill CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Hill CLA 2009-03-11 15:35:52 EDT
A 'A repository error has occurred' flag is provided when trying to connect to a new Bugzilla (3.2.2) when using Mylyn (3.0.4, 3.0.5, & 3.1). It does not throw the error when connecting anonymously, but when providing user credentials. The error is producible over and over.
Comment 1 Frank Becker CLA 2009-03-11 17:40:28 EDT
(In reply to comment #0)
> A 'A repository error has occurred' flag is provided when trying to connect to a
> new Bugzilla (3.2.2) when using Mylyn (3.0.4, 3.0.5, & 3.1). It does not throw
> the error when connecting anonymously, but when providing user credentials. The
> error is producible over and over.

Please give some more information. Press the link and you see the html error message.
Comment 2 David Hill CLA 2009-03-11 18:38:50 EDT
(In reply to comment #1)
> (In reply to comment #0)
> > A 'A repository error has occurred' flag is provided when trying to connect to a
> > new Bugzilla (3.2.2) when using Mylyn (3.0.4, 3.0.5, & 3.1). It does not throw
> > the error when connecting anonymously, but when providing user credentials. The
> > error is producible over and over.
> 
> Please give some more information. Press the link and you see the html error
> message.
> 

How would you like me to capture the error? What link would you like me to click on to produce the HTML error? The errors I am currently getting are.

Properties Box: A repository error has occurred.
New Task: Unable to get products. Ensure proper repository configuration in task Repositories.
New Query: Error updating search options. A repository error has occurred.
Comment 3 Frank Becker CLA 2009-03-13 17:19:08 EDT
Created attachment 128792 [details]
link that give more information

(In reply to comment #2)
> (In reply to comment #1)
> > (In reply to comment #0)
> > > A 'A repository error has occurred' flag is provided when trying to connect
> to a
> > > new Bugzilla (3.2.2) when using Mylyn (3.0.4, 3.0.5, & 3.1). It does not
> throw
> > > the error when connecting anonymously, but when providing user credentials.
> The
> > > error is producible over and over.
> >
> > Please give some more information. Press the link and you see the html error
> > message.
> >
> 
> How would you like me to capture the error? What link would you like me to click
> on to produce the HTML error? The errors I am currently getting are.
> 
> Properties Box: A repository error has occurred.
> New Task: Unable to get products. Ensure proper repository configuration in task
> Repositories.
> New Query: Error updating search options. A repository error has occurred.
Please click this link
Comment 4 Frank Becker CLA 2009-03-13 17:24:21 EDT
Created attachment 128794 [details]
link

Sorry wrong type of image
Comment 5 David Hill CLA 2009-03-16 11:53:26 EDT
Created attachment 128942 [details]
Error on my screen

I can not find the link anywhere on my screen, I have attached an image on my associated error.
Comment 6 Frank Becker CLA 2009-03-16 15:16:43 EDT
(In reply to comment #5)
> Created an attachment (id=128942)
> Error on my screen
> 
> I can not find the link anywhere on my screen, I have attached an image on my
> associated error.

OK now I see that the this is not in the Taskeditor.

Please can you attach the whole content of the scroller from the error window (this is the HTML result of the request that case the error)
Comment 7 David Hill CLA 2009-03-16 15:26:41 EDT
(In reply to comment #6)
> OK now I see that the this is not in the Taskeditor.
> 
> Please can you attach the whole content of the scroller from the error window
> (this is the HTML result of the request that case the error)


<!DOCTYPE 4.01="" "http://www.w3.org/tr/html4/loose.dtd"="" transitional//en"="" html="" public="" "-//w3c//dtd="">
<html>
  <head>
    <title>Bugzilla Main Page</title>


<link rel="Top" href="http://************/bugzilla/">
  
    <link title="My Bugs" rel="Saved Searches" href="buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&email1=**************&field0-0-0=bug_status&type0-0-0=notequals&value0-0-0=UNCONFIRMED&field0-0-1=reporter&type0-0-1=equals&value0-0-1=*************">

    <link title="My Bugs w/ Inwork" rel="Saved Searches" href="buglist.cgi?cmdtype=runnamed&namedcmd=My%20Bugs%20w%2F%20Inwork">
    <link title="******" rel="Saved Searches" href="buglist.cgi?cmdtype=runnamed&namedcmd=********">
    
      <link rel="stylesheet" type="text/css" href="skins/standard/global.css">
      <link rel="stylesheet" type="text/css" href="skins/standard/index.css">
    <!--[if IE]>
      
      <link href="skins/standard/IE-fixes.css"
            rel="stylesheet"
            type="text/css">
    <![endif]-->

    
        <link title="Classic" rel="alternate stylesheet" type="text/css" href="skins/standard/global.css">
        <link title="Classic" rel="alternate stylesheet" type="text/css" href="skins/standard/index.css">
      <!--[if IE]>
        
        <link href="skins/standard/IE-fixes.css"
              rel="alternate stylesheet"
              title="Classic"
              type="text/css">
      <![endif]-->

        
            <link title="Dusk" rel="stylesheet" type="text/css" href="skins/contrib/Dusk/global.css">
            <link title="Dusk" rel="stylesheet" type="text/css" href="skins/contrib/Dusk/index.css">
        <!--[if IE]>
          
          <link href="skins/contrib/Dusk/IE-fixes.css"
                rel="stylesheet"
                title="Dusk"
                type="text/css">
        <![endif]-->
    
        <link rel="stylesheet" type="text/css" href="skins/custom/global.css">
        <link rel="stylesheet" type="text/css" href="skins/custom/index.css">
    <!--[if IE]>
      
      <link href="skins/custom/IE-fixes.css"
            rel="stylesheet"
            type="text/css">
    <![endif]-->
    
    <link title="Bugzilla" rel="search" type="application/opensearchdescription+xml" href="./search_plugin.cgi">
    <link rel="shortcut icon" href="images/favicon.ico">
  </head>


  <body onload="document.forms['f'].quicksearch.focus();" class="****************">


<div id="header">
<div id="banner">
  </div>

<table id="titles" cellpadding="0" border="0" cellspacing="0">
<tr>
    <td id="title">
      <p>Bugzilla &ndash; Main Page</p>
    </td>


    <td id="information">
      <p class="header_addl_info">version 3.2.2</p>
    </td>
</tr>
</table>
<ul class="links">
  <li><a href="./">Home</a></li>
  <li><span class="separator">| </span><a href="enter_bug.cgi">New</a></li>
  <li><span class="separator">| </span><a href="query.cgi">Search</a></li>

  <li class="form">
    <span class="separator">| </span>
    <form action="buglist.cgi" method="get" onsubmit="if (this.quicksearch.value == '')
                  { alert('Please enter one or more search terms first.');
                    return false; } return true;">
    <input id="quicksearch_top" name="quicksearch" class="txt" type="text">
    <input id="find_top" value="Find" class="btn" type="submit"></form></li>

  <li><span class="separator">| </span><a href="report.cgi">Reports</a></li>

  <li></li>


    <li><span class="separator">| </span><a href="userprefs.cgi">Preferences</a></li>


    <li>
      <span class="separator">| </span>
        <a href="relogin.cgi">Log&nbsp;out</a>
        *******************</li>
</ul>

</div>

<div id="bugzilla-body">
<div style="text-align: center;" class="bz_private">
<h3>Proprietary Information</h3>
<hr>
<h4>Our Platform</h4>
For help or access, please contact the <a href="mailto:*********************">administrator</a>.
<br>
<br>
<br>
</div>


<script type="text/javascript">
<!--
function addSidebar() {
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
  {
    var sidebarname=window.location.host;
    if (!/bug/i.test(sidebarname))
      sidebarname="Bugzilla "+sidebarname;
    window.sidebar.addPanel (sidebarname, "http://****************/bugzilla/sidebar.cgi", "");
  }
  else
  {
    var rv = window.confirm ("Your browser does not support the sidebar extension.  " + "Would you like to upgrade now?");
    if (rv)
      document.location.href = "http://www.mozilla.org/";
  }
}
//-->
</script>


<div id="page-index">
  <div class="intro"></div>

  <p>Welcome to Bugzilla. To see what's new in this version
    of Bugzilla, see the 
    <a href="page.cgi?id=release-notes.html">release notes</a>!
    You may also want to read the 
    <a href="http://astro.ofallon.us.lmco.com/bugzilla/docs/en/html/using.html">Bugzilla User's Guide</a> to find out more about 
    Bugzilla and how to use it.</p>

  <p>Most common actions:</p>
  <ul>
    <li id="query"><a href="query.cgi">Search existing bug reports</a></li>
    <li id="enter-bug"><a href="enter_bug.cgi">Enter a new bug report</a></li>
    <li id="report"><a href="report.cgi">Summary reports and charts</a></li>
    <li id="userprefs"><a href="userprefs.cgi">Change password or user preferences</a></li>
    <li id="logout"><a href="relogin.cgi">Log out david.a.hill&#64;lmco.com</a></li>
    <li id="sidebar"><a href="javascript:addSidebar()">Add to Sidebar</a> (requires a Mozilla browser like Mozilla Firefox)</li>
    <li id="quick_search_plugin">
      <a href="javascript:window.external.AddSearchProvider('http://**************/bugzilla/search_plugin.cgi')">Install
      the Quick Search plugin</a> (requires Firefox 2 or Internet Explorer 7)
    </li>


    

  </ul>

  <form id="f" name="f" action="buglist.cgi" method="get" onsubmit="if (this.quicksearch.value == '')
                  { alert('Please enter one or more search terms first.');
                    return false; } return true;">
  <div>
    <p>Enter a bug # or some search terms:</p>
    <input id="quicksearch" name="quicksearch" type="text">
    <input id="find" value="Find" type="submit">
    <a href="page.cgi?id=quicksearch.html">[Help]</a>
  </div>
  </form>

  <div class="outro"></div>
</div>
</div>



<div id="footer">
  <div class="intro"></div>




<ul id="useful-links">
  <li id="links-actions">
    <div class="label">Actions: </div><ul class="links">
  <li><a href="./">Home</a></li>
  <li><span class="separator">| </span><a href="enter_bug.cgi">New</a></li>
  <li><span class="separator">| </span><a href="query.cgi">Search</a></li>

  <li class="form">
    <span class="separator">| </span>
    <form action="buglist.cgi" method="get" onsubmit="if (this.quicksearch.value == '')
                  { alert('Please enter one or more search terms first.');
                    return false; } return true;">
    <input id="quicksearch_bottom" name="quicksearch" class="txt" type="text">
    <input id="find_bottom" value="Find" class="btn" type="submit"></form></li>

  <li><span class="separator">| </span><a href="report.cgi">Reports</a></li>

  <li></li>


    <li><span class="separator">| </span><a href="userprefs.cgi">Preferences</a></li>


    <li>
      <span class="separator">| </span>
        <a href="relogin.cgi">Log&nbsp;out</a>
        *************************</li>
</ul>
  </li>

  
    
    <li id="links-saved">
      <div class="label">
        Saved Searches:
      </div>
      <ul class="links">
          <li><a href="buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&email1=**********************&field0-0-0=bug_status&type0-0-0=notequals&value0-0-0=UNCONFIRMED&field0-0-1=reporter&type0-0-1=equals&value0-0-1=*********************">My Bugs</a></li>

            <li><span class="separator">| </span>
            <a href="buglist.cgi?cmdtype=runnamed&namedcmd=My%20Bugs%20w%2F%20Inwork">My Bugs w/ Inwork</a></li>
            <li><span class="separator">| </span>
            <a href="buglist.cgi?cmdtype=runnamed&namedcmd=**********">************</a></li>
      </ul>
    </li>

  


  
</ul>

  <div class="outro"></div>
</div>

</body>
</html>
Comment 8 David Hill CLA 2009-03-16 16:43:08 EDT
Created attachment 128991 [details]
Another error screenshot
Comment 9 Frank Becker CLA 2009-03-16 17:10:12 EDT
Please try the following:

1) go to the properties of your Repository and make validate that the settings are legal
2) please log in using  html and then try to execute the following URL <path to your repository>/config.cgi?ctype=rdf
Comment 10 David Hill CLA 2009-03-16 23:42:29 EDT
(In reply to comment #9)
> Please try the following:
> 
> 1) go to the properties of your Repository and make validate that the settings
> are legal

What are you wanting me to validate? I do not understand the task. The repository is actively being used and is working fine.

> 2) please log in using  html and then try to execute the following URL <path to
> your repository>/config.cgi?ctype=rdf

I went to the address above and it successfully returned an XML document... starting with this.

<RDF>
&#8722;
<bz:installation rdf:about="http://*********/bugzilla/">
<bz:install_version>3.2.2</bz:install_version>
<bz:maintainer>********@lmco.com</bz:maintainer> 

Comment 11 Frank Becker CLA 2009-03-17 18:21:44 EDT
(In reply to comment #10)
> (In reply to comment #9)
> > Please try the following:
> >
> > 1) go to the properties of your Repository and make validate that the settings
> > are legal
> 
> What are you wanting me to validate? I do not understand the task. The
> repository is actively being used and is working fine.
From your screenshout I see that there is no valid repository configuration at the time you want th add the query. I assume that you create the repository and typed in a woron user/passowrd combination. So please tyt to hit hte button validate Settings in the repository properties and if this is OK then try to update the repository configuration by hit the F5. I think, that one of both will fail. If not please look if you get an errorbox or an entry in the error log.
> > 2) please log in using  html and then try to execute the following URL <path
> to
> > your repository>/config.cgi?ctype=rdf
> 
> I went to the address above and it successfully returned an XML document...
> starting with this.
> 
> <RDF>
> &#8722;
> <bz:installation rdf:about="http://*********/bugzilla/">
> <bz:install_version>3.2.2</bz:install_version>
> <bz:maintainer>********@lmco.com</bz:maintainer>

OK, I think that bugzilla return an valid responce to that request.


Comment 12 David Hill CLA 2009-03-18 15:23:32 EDT
Created attachment 129274 [details]
Screenshot before credentials
Comment 13 David Hill CLA 2009-03-18 15:23:54 EDT
Created attachment 129275 [details]
Screenshot after credentials
Comment 14 David Hill CLA 2009-03-18 15:27:21 EDT
(In reply to comment #11)
> From your screenshout I see that there is no valid repository configuration at
> the time you want th add the query. I assume that you create the repository and
> typed in a woron user/passowrd combination. So please tyt to hit hte button
> validate Settings in the repository properties and if this is OK then try to
> update the repository configuration by hit the F5. I think, that one of both
> will fail. If not please look if you get an errorbox or an entry in the error
> log.

I have just attached two screenshots. The before shows that before adding credentials it validate the repository and said that it was fine. The second shows that when I add credentials and validate again that it shows an error. The credentials are valid as I have used them to log directly into the site. Something else is wrong.

> OK, I think that bugzilla return an valid responce to that request.


Comment 15 Frank Becker CLA 2009-03-18 15:58:07 EDT
(In reply to comment #11)
> > I went to the address above and it successfully returned an XML document...
> > starting with this.
> > 
> > <RDF>
> > &#8722;
> > <bz:installation rdf:about="http://*********/bugzilla/">
> > <bz:install_version>3.2.2</bz:install_version>
> > <bz:maintainer>********@lmco.com</bz:maintainer>
> 

Sorry now I think that you get the config but the file has some  illegal content that are not well handled.

Is it possible that 

a) Can I have access to that repository so I can do some test by my own
b) Can you give me the whole content of the result from config.cgi.

Is the 
"<RDF>
&#8722; 
<bz:installation rdf:about=..." 
the original start of the document?

In my test Repository the start is
"<?xml version="1.0" encoding="UTF-8"?>
<!-- Note: this interface is experimental and under development.
   - We may and probably will make breaking changes to it in the future. -->

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:bz="http://www.bugzilla.org/rdf#">

<bz:installation rdf:about="
Comment 16 Andrew Thompson CLA 2009-03-20 00:40:58 EDT
This looks related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=263318.

My team applied the recommended bugzilla patch and it worked for the 3.0.5 mylyn client, but now breaks for 3.1.0.
Comment 17 Juan Farina CLA 2009-05-11 15:47:48 EDT
I confirm this bug in Mylyn 3.0.5 and 3.1.1, working against Bugzilla 3.2.3.
In http://www.bugzilla.org/releases/3.2.3/release-notes.html they report to have fixed the bug https://bugzilla.mozilla.org/show_bug.cgi?id=476678, related to http://www.eclipse.org/newsportal/article.php?id=1648&group=eclipse.tools.mylyn#1648 but it seems to still be around.
- As David said, I can create a new bug from the web interface, but not from Mylyn
- I can synchronize if using anonymous access (could download a task), but as soon as I enter my user/pass, I can't even validate the repository settings. It keeps saying "A repository error has occurred" (same when trying to commit a new task).
- I tried to find some clue in Bugzilla's logs, but found no error reports. Only once (I couldn't reproduce it) found this:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : SSL input filter read failed.

and also this:

OpenSSL: I/O error, 5 bytes expected to read on BIO#756f438 [mem: 7d14710]

(perhaps this give you some clue?)

Let me know if you need some more information.
Comment 18 Frank Becker CLA 2009-05-23 15:49:36 EDT
Please verify that this is not releated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=269803.

You can do this by test if you get the Bugzilla_login cookie using your browser. 
Comment 19 Steffen Pingel CLA 2009-06-14 18:15:53 EDT
What is the status of this bug? Rob, please lower the severity or prioritize accordingly.
Comment 20 David Hill CLA 2009-06-15 15:48:55 EDT
This error still exists on my configuration of eclipse 3.4.2, 3.2.0 (weekly), and Bugzilla 3.2.2. I consider it a large error since basically makes the software inoperable. 
Comment 21 Robert Elves CLA 2009-06-15 16:13:55 EDT
David, are you behind some form of proxy that is intercepting the authentication cookie (similar to what is described on bug#269803)?
Comment 22 Frank Becker CLA 2009-06-15 16:15:10 EDT
(In reply to comment #20)
> This error still exists on my configuration of eclipse 3.4.2, 3.2.0 (weekly),
> and Bugzilla 3.2.2. I consider it a large error since basically makes the
> software inoperable. 
> 

Please answer the following questions

1) did you get the Bugzilla_login cookie?
2) can you update Bugzilla to 3.2.3 ?
3) can you test this with an unmodified 3.2.2 ?
4) can I have access to that bugzilla repository so sat I can do some tests?
Comment 23 David Hill CLA 2009-06-15 17:23:46 EDT
(In reply to comment #21)
> David, are you behind some form of proxy that is intercepting the
> authentication cookie (similar to what is described on bug#269803)?
> 

It does seem very similar to this bug. How is the patch on bug #269803 applied?
Comment 24 David Hill CLA 2009-06-15 17:28:51 EDT
(In reply to comment #22)
> (In reply to comment #20)
> > This error still exists on my configuration of eclipse 3.4.2, 3.2.0 (weekly),
> > and Bugzilla 3.2.2. I consider it a large error since basically makes the
> > software inoperable. 
> > 
> 
> Please answer the following questions
> 
> 1) did you get the Bugzilla_login cookie?
> 2) can you update Bugzilla to 3.2.3 ?
> 3) can you test this with an unmodified 3.2.2 ?
> 4) can I have access to that bugzilla repository so sat I can do some tests?
> 

1) Where is the cookie located so that I can verify the retrieval of it? It comes over fine through the website and the internal eclipse browser.

2) Are there significant changes? I can probably get it to happen, but it might not be easy.

3) What signifies it as modified? It is pretty much right out of the box.

4) Sorry, not possible. But I will try and do whatever testing is necessary to resolve.
Comment 25 Robert Elves CLA 2009-06-15 18:33:10 EDT
(In reply to comment #24) 
> 1) Where is the cookie located so that I can verify the retrieval of it? It
> comes over fine through the website and the internal eclipse browser.

One way tto test that the cookie is getting to your machine is to try launching firefox and authenticate against your bugzilla repository. Then search for "Bugzilla_logincookie" in the firefox cookies dialog accessible via:

    Tools > Options,  Privacy tab/section, and click Show Cookies...
    
 If the cookie is present then it is in fact making it to your computer.  You could further verify this is the case by removing the cookie and trying these steps again.
Comment 26 David Hill CLA 2009-06-18 12:33:43 EDT
(In reply to comment #25)
> (In reply to comment #24) 
> > 1) Where is the cookie located so that I can verify the retrieval of it? It
> > comes over fine through the website and the internal eclipse browser.
> 
> One way tto test that the cookie is getting to your machine is to try launching
> firefox and authenticate against your bugzilla repository. Then search for
> "Bugzilla_logincookie" in the firefox cookies dialog accessible via:
> 
>     Tools > Options,  Privacy tab/section, and click Show Cookies...
> 
>  If the cookie is present then it is in fact making it to your computer.  You
> could further verify this is the case by removing the cookie and trying these
> steps again.
> 

Two things. I logged in via Firefox and had no issues, I verified that the cookie made it to the browser and was located where you specified above.

Second, I selected the created task repository in eclipse and tried to create a new task. A window popped up with the title 'Error creating new task'. It was able to log me in, as I can see my user name and my task queries, but all of the functionality is broken like I have described before in this bug.
Comment 27 Robert Elves CLA 2009-08-05 19:26:37 EDT
David, is there any way for us to get access to this repository for testing (i.e. a test account)? 
Comment 28 David Hill CLA 2009-08-06 11:21:04 EDT
Robert - It just isn't possible, the repository sits on a corporate network. I am happen as always with this bug to provide any support that I can.

Thanks.
Comment 29 Robert Elves CLA 2009-08-06 17:47:02 EDT
(In reply to comment #28)
> Robert - It just isn't possible, the repository sits on a corporate network. I
> am happen as always with this bug to provide any support that I can.
> 
> Thanks.
No problem, could you email me your repository conifguration obtainable the url below (citing this bug):

[your repository url]/config.cgi?ctype=rdf

Comment 30 David Hill CLA 2009-08-06 18:25:45 EDT
Created attachment 143730 [details]
Configuration

(In reply to comment #29)
> (In reply to comment #28)
> > Robert - It just isn't possible, the repository sits on a corporate network. I
> > am happen as always with this bug to provide any support that I can.
> > 
> > Thanks.
> No problem, could you email me your repository conifguration obtainable the url
> below (citing this bug):
> 
> [your repository url]/config.cgi?ctype=rdf
Comment 31 Robert Elves CLA 2009-08-10 17:42:45 EDT
Thanks David.  This configuration appears to be empty and is likely the result of executing the request without having been logged in.  Do you get the same result when logged in via the web UI?
Comment 32 David Hill CLA 2009-08-10 17:48:19 EDT
Created attachment 143978 [details]
Configuration

(In reply to comment #31)
> Thanks David.  This configuration appears to be empty and is likely the result
> of executing the request without having been logged in.  Do you get the same
> result when logged in via the web UI?

Sorry, you are correct. I have attached the 'logged in' version.
Comment 33 Robert Elves CLA 2009-11-05 13:17:48 EST
Dave, sorry for delay on this. Have you tried testing with the latest Mylyn 3.3?
Comment 34 David Hill CLA 2009-11-05 16:20:51 EST
(In reply to comment #33)
> Dave, sorry for delay on this. Have you tried testing with the latest Mylyn
> 3.3?

You know when I got an email notification that a new version was out I got excited. I update Mylyn to the newest version, removed all of my previous task repositories, and then tried to create a new one. It then gave the same error I have seen many times before, 'A repository error has occurred'. The repository validates before I add my credentials and then errors once I add them. We still have bugzilla version 3.2.2.

Thanks, but I think we have given up on Eclipse and Bugzilla integration.
Comment 35 Robert Elves CLA 2009-11-06 21:35:55 EST
(In reply to comment #34)
> Thanks, but I think we have given up on Eclipse and Bugzilla integration.

I'm really sorry to hear this Dave. There are 10s if not 100s of thousands of successful users of this combination, so I'd really like to get to the bottom of this issue that you (and likely a handful of others) are experiencing.  I added additional logging in the 3.3 release to help us track this particular issue down.  Before you toss everything out, would you mind having a quick look in your error log for an entry corresponding to this error?  If you don't have time, consider emailing me your entire error log and I can dig it out. Thanks!
Comment 36 David Hill CLA 2009-11-10 11:29:50 EST
(In reply to comment #35)
> I'm really sorry to hear this Dave. There are 10s if not 100s of thousands of
> successful users of this combination, so I'd really like to get to the bottom
> of this issue that you (and likely a handful of others) are experiencing.  I
> added additional logging in the 3.3 release to help us track this particular
> issue down.  Before you toss everything out, would you mind having a quick look
> in your error log for an entry corresponding to this error?  If you don't have
> time, consider emailing me your entire error log and I can dig it out. Thanks!

Oh for sure, just let me know how I can get it and I will. Thanks.
Comment 37 Robert Elves CLA 2009-11-10 12:35:15 EST
Great. When you see the error occur open your error log (Window > Show View > Error Log). Within the error log view, press the "Export Log" button (left most button) and email me the resulting file. I'll have a look and try to track down the issue.
Comment 38 Robert Elves CLA 2009-11-10 12:50:22 EST
David, I just was looking through the code again and although there is more logging, the details we may need to sort this out are likely not getting into the error log. I've committed additional logging which will be in the next weekly build. So in addition to sending my your current error log, I may need to ask you to try the next weekly build as well. I'll post details on where to get this once available. Thanks again.
Comment 39 David Hill CLA 2009-11-10 13:41:09 EST
Created attachment 151861 [details]
Mylyn 3.3.0 Log File

(In reply to comment #38)
> David, I just was looking through the code again and although there is more
> logging, the details we may need to sort this out are likely not getting into
> the error log. I've committed additional logging which will be in the next
> weekly build. So in addition to sending my your current error log, I may need
> to ask you to try the next weekly build as well. I'll post details on where to
> get this once available. Thanks again.

I have attached my current log file, and it contains three events. The first two are the error I get when I setup the repository with my credentials and the third is the error I get with the credentials removed.
Comment 40 Robert Elves CLA 2009-11-15 22:16:24 EST
Okay thanks for posting. Looks like we'll need you to try out the next weekly build of Mylyn which will dump out the exact response from the server when this happens to the error log. Update sites for the weekly build are available under "Weekly Builds" at:

   http://eclipse.org/mylyn/downloads/
Comment 41 David Hill CLA 2009-11-16 12:32:57 EST
Created attachment 152318 [details]
Mylyn 3.3.1.I20091113 Log File

(In reply to comment #40)
> Okay thanks for posting. Looks like we'll need you to try out the next weekly
> build of Mylyn which will dump out the exact response from the server when this
> happens to the error log. Update sites for the weekly build are available under
> "Weekly Builds" at:
> 
>    http://eclipse.org/mylyn/downloads/

I have uploaded a new log file from weekly build 3.3.1.I20091113, hope it helps.
Comment 42 Robert Elves CLA 2009-11-16 13:21:21 EST
Excellent, from the server response it looks like you're logged in successfully so barring any odd cookie issues subsequent requests should work.  Could you verify whether this error does/doesn't happen when you press Validate in the Task Repository settings page?  Could you also check if it happens when you select Update Repository Configuration from the popup menu on the repository? Thanks.
Comment 43 David Hill CLA 2009-11-16 13:40:18 EST
(In reply to comment #42)
> Excellent, from the server response it looks like you're logged in successfully
> so barring any odd cookie issues subsequent requests should work.  Could you
> verify whether this error does/doesn't happen when you press Validate in the
> Task Repository settings page?  Could you also check if it happens when you
> select Update Repository Configuration from the popup menu on the repository?
> Thanks.

The error does occur when I press validate with my valid credentials inputted. However, if I remove my credentials and connect anonymously it will validate, of course then I can do anything though because we require credentials.

The same type of error occurs when I click 'Update Repository Configuration' from the repository pop-up menu.
Comment 44 Robert Elves CLA 2009-11-23 12:46:11 EST
Okay. By the looks of things we'll need to test that our client is getting the proper authentication cookie from Bugzilla. This is related to bug 269803.  I'll put that in place and post back once a build is available.
Comment 45 Jai Singh CLA 2009-12-31 15:38:17 EST
I've had similar issues, turned out to be my cookie domain was set to domain.com now host.domain.com on bugzilla.

Changed, and works fine now.
Comment 46 Robert Elves CLA 2010-01-04 12:03:34 EST
*** Bug 283916 has been marked as a duplicate of this bug. ***
Comment 47 Robert Elves CLA 2010-01-14 18:50:04 EST
(In reply to comment #45)
> I've had similar issues, turned out to be my cookie domain was set to domain.com
> now host.domain.com on bugzilla.
> 
> Changed, and works fine now.

Thanks for this info Jai. 

David, would you be able to check this on your bugzilla server? I added logging of cookies when this failure happens so we can see what exactly you're getting back.  We're spinning a build this evening so it will be available morning of the 15th pacific time. Update sites can be found under 'Weekly Builds' on the downloads page:

   http://eclipse.org/mylyn/downloads/
Comment 48 David Hill CLA 2010-01-19 12:46:18 EST
Created attachment 156534 [details]
Mylyn 3.3.2.I20100116 Log File

(In reply to comment #47)
> David, would you be able to check this on your Bugzilla server? I added logging
> of cookies when this failure happens so we can see what exactly you're getting
> back.  We're spinning a build this evening so it will be available morning of
> the 15th pacific time. Update sites can be found under 'Weekly Builds' on the
> downloads page:

Robert - I have updated to the 'weekly build' and it seems that it is still throwing the error I have received all along, "An unkown repository error has occurred." (Also 'unkown' is spelled wrong in the given error).

I have attached the errors that I received. Is there another way that you would like me to capture my errors?
Comment 49 Robert Elves CLA 2010-01-19 17:54:20 EST
Thanks David. Spelling fixed, and we're making progress!  From the log it indicates that our client is actually not receiving the necessary authentication cookie: Bugzilla_login

In comment#26 you verified that the cookie is in fact making it to your browser. I apologize if this has already been asked but are you using any PAC scripts that you are aware of (http://en.wikipedia.org/wiki/Proxy_auto-config), and what OS and Eclipse product/version are you using?
Comment 50 David Hill CLA 2010-01-20 12:06:37 EST
(In reply to comment #49)
> Thanks David. Spelling fixed, and we're making progress!  From the log it
> indicates that our client is actually not receiving the necessary
> authentication cookie: Bugzilla_login
> 
> In comment#26 you verified that the cookie is in fact making it to your
> browser. I apologize if this has already been asked but are you using any PAC
> scripts that you are aware of (http://en.wikipedia.org/wiki/Proxy_auto-config),
> and what OS and Eclipse product/version are you using?

Ya, I routinely use the browser to use the site and have verified several times that the cookie is making it there. We are using a proxy, but it shouldn't be blocking any traffic to our bugzilla server because it is local. Also, I have configured the proxy correctly within eclipse as it is able to download updates and connect to external websites.

I am using Eclipse 3.4.2 with Windows XP. I am not sure if this makes a difference, but I have used the internal eclipse several times to access the repository.
Comment 51 Robert Elves CLA 2010-01-21 16:27:26 EST
Okay, then perhaps httpclient is rejecting the cookie whereas the browsers are not. Could you send me an email with the following info:

a) The cookie domain set in the bugzilla server's administration parameters required settings page
b) The cookiepath (usually found in on the same required settings page)
c) What the url is you are entering onto 'Server' field of the Task Repository settings page in mylyn for this bugzilla server
Comment 52 Robert Elves CLA 2010-02-04 14:25:39 EST
For any others that run into this problem, it is most often the result of the Bugzilla server's *cookiedomain* being set incorrectly. This setting is found under Administration > Required Settings on most Bugzilla servers. If for example the cookiedomain is set to domain.com instead of .domain.com this problem will arise. Setting the cookiedomain to .domain.com or host.domain.com should resolve the issue. If it doesn't, please comment here.
Comment 53 Robert Elves CLA 2010-02-04 22:23:36 EST
(In reply to comment #50)
> Ya, I routinely use the browser to use the site and have verified several times
> that the cookie is making it there. We are using a proxy, but it shouldn't be
> blocking any traffic to our bugzilla server because it is local. Also, I have
> configured the proxy correctly within eclipse as it is able to download updates
> and connect to external websites.

David, could you check if the cookie being returned i.e. in Firefox is for the same domain as what you're entering in the Task Repository settings page?  If different, try setting the repository url to the ip address:portnum of the server (prefixed as necessary with http:// or https://) and see if this resolves your particular situation.  Thanks!
Comment 54 Robert Elves CLA 2010-02-18 20:16:34 EST
*** Bug 293873 has been marked as a duplicate of this bug. ***
Comment 55 xrealine CLA 2010-03-22 12:43:06 EDT
(In reply to comment #54)
> *** Bug 293873 has been marked as a duplicate of this bug. ***

Hi Robert,

I'm not sure that #293873 should be closed.
The bug reports a wrong notification, it's not related to any connection failure.

In my particular case the local Bugzilla server was connected successfully and the attachment was uploaded. But the user is wrongly notified that the operation was failed!

Regards,
 Evgeny
Comment 56 Robert Elves CLA 2010-04-08 17:19:03 EDT
*** Bug 308549 has been marked as a duplicate of this bug. ***
Comment 57 Jason Ayres CLA 2010-10-15 00:33:34 EDT
(In reply to comment #52)
> For any others that run into this problem, it is most often the result of the
> Bugzilla server's *cookiedomain* being set incorrectly. This setting is found
> under Administration > Required Settings on most Bugzilla servers. If for
> example the cookiedomain is set to domain.com instead of .domain.com this
> problem will arise. Setting the cookiedomain to .domain.com or host.domain.com
> should resolve the issue. If it doesn't, please comment here.

David, just wanted to let you know that with Bugzilla 3.6.2, Eclipse 3.5, and mylyn 3.4.2, I had the error when setting up the Repository (Though listed as "An unknown repository error has occured:  bugzilla main page") but would work in annonymous mode.  My cookiedomain was domain.tld instead of .domain.tld.  Changing that fixed my issue and I am now posting this FROM Eclipse!

Thanks!
Comment 58 Steffen Pingel CLA 2011-09-28 05:56:42 EDT
It sounds like this issue is resolved now? bug 269803 has been opened to track improvements to the error handling.
Comment 59 Steffen Pingel CLA 2012-03-08 10:15:39 EST
I'm marking this resolved. Please reopen in case the error still occurs with the latest weekly build.