Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » How to contribute new Generic Web templates
How to contribute new Generic Web templates [message #56855] Wed, 27 August 2008 17:15 Go to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
The generic web connector provides templates for a few types of
repositories. After spending a few days refining the urls and query
patterns for my repository, I would like to share this with the rest of the
team with something more convenient that copy/paste.

How can I add a new repository template to the generic web connector?

I've been looking for an extension point that I could contribute to, but no
luck.

I've searched the jars looking for an xml config or something, but again no
luck.

I don'm mind writing a plug-in if I have to, but cannot find the extension
point I need to use.

Thanks
Michael
Re: How to contribute new Generic Web templates [message #57300 is a reply to message #56855] Mon, 08 September 2008 15:40 Go to previous messageGo to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
I'll be happy to read the manual, but could not find anything related. I
may have overlooked something. Could someone point me to appropriate docs?

Michael
"Michael Giroux" <michael.giroux@bull.com> wrote in message
news:g9422v$9t5$1@build.eclipse.org...
> The generic web connector provides templates for a few types of
> repositories. After spending a few days refining the urls and query
> patterns for my repository, I would like to share this with the rest of
> the team with something more convenient that copy/paste.
>
> How can I add a new repository template to the generic web connector?
>
> I've been looking for an extension point that I could contribute to, but
> no luck.
>
> I've searched the jars looking for an xml config or something, but again
> no luck.
>
> I don'm mind writing a plug-in if I have to, but cannot find the extension
> point I need to use.
>
> Thanks
> Michael
>
Re: How to contribute new Generic Web templates [message #57426 is a reply to message #57300] Tue, 09 September 2008 17:28 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:

<extension
point="org.eclipse.mylyn.tasks.core.templates">
<repository
repositoryKind="web"
label="Subclipse (IssueZilla)"
urlRepository="http://subclipse.tigris.org/issues"
urlTask="${serverUrl}/show_bug.cgi?id="
urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"

urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
<attribute name="queryPattern"
value="&lt;a href=&quot;show_bug.cgi\?id\=(
+?)&quot;&gt;.+?&lt;span class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
</repository>
...
</extension>

If your plug-in specifies a template that has the repositoryKind set
to "web" it should show up in the repository properties dialog.

Steffen


Michael Giroux wrote:

> I'll be happy to read the manual, but could not find anything related. I
> may have overlooked something. Could someone point me to appropriate
> docs?
>
> Michael
> "Michael Giroux" <michael.giroux@bull.com> wrote in message
> news:g9422v$9t5$1@build.eclipse.org...
>> The generic web connector provides templates for a few types of
>> repositories. After spending a few days refining the urls and query
>> patterns for my repository, I would like to share this with the rest of
>> the team with something more convenient that copy/paste.
>>
>> How can I add a new repository template to the generic web connector?
>>
>> I've been looking for an extension point that I could contribute to, but
>> no luck.
>>
>> I've searched the jars looking for an xml config or something, but again
>> no luck.
>>
>> I don'm mind writing a plug-in if I have to, but cannot find the
>> extension point I need to use.
>>
>> Thanks
>> Michael
>>
Re: How to contribute new Generic Web templates [message #57552 is a reply to message #57426] Tue, 09 September 2008 21:14 Go to previous messageGo to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Exactly what I needed. I'll dig in.

Michael

"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:ga6bn0$2gp$5@build.eclipse.org...
> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>
> <extension
> point="org.eclipse.mylyn.tasks.core.templates">
> <repository
> repositoryKind="web"
> label="Subclipse (IssueZilla)"
> urlRepository="http://subclipse.tigris.org/issues"
> urlTask="${serverUrl}/show_bug.cgi?id="
> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>
> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
> <attribute name="queryPattern"
> value="&lt;a href=&quot;show_bug.cgi\?id\=(
> +?)&quot;&gt;.+?&lt;span
> class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
> </repository>
> ...
> </extension>
>
> If your plug-in specifies a template that has the repositoryKind set
> to "web" it should show up in the repository properties dialog.
>
> Steffen
>
>
> Michael Giroux wrote:
>
>> I'll be happy to read the manual, but could not find anything related. I
>> may have overlooked something. Could someone point me to appropriate
>> docs?
>>
>> Michael
>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>> news:g9422v$9t5$1@build.eclipse.org...
>>> The generic web connector provides templates for a few types of
>>> repositories. After spending a few days refining the urls and query
>>> patterns for my repository, I would like to share this with the rest of
>>> the team with something more convenient that copy/paste.
>>>
>>> How can I add a new repository template to the generic web connector?
>>>
>>> I've been looking for an extension point that I could contribute to, but
>>> no luck.
>>>
>>> I've searched the jars looking for an xml config or something, but again
>>> no luck.
>>>
>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>> extension point I need to use.
>>>
>>> Thanks
>>> Michael
>>>
>
Re: How to contribute new Generic Web templates [message #57577 is a reply to message #57426] Tue, 09 September 2008 21:47 Go to previous messageGo to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Building the plugin was quite simple. Thanks.


Michael

"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:ga6bn0$2gp$5@build.eclipse.org...
> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>
> <extension
> point="org.eclipse.mylyn.tasks.core.templates">
> <repository
> repositoryKind="web"
> label="Subclipse (IssueZilla)"
> urlRepository="http://subclipse.tigris.org/issues"
> urlTask="${serverUrl}/show_bug.cgi?id="
> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>
> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
> <attribute name="queryPattern"
> value="&lt;a href=&quot;show_bug.cgi\?id\=(
> +?)&quot;&gt;.+?&lt;span
> class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
> </repository>
> ...
> </extension>
>
> If your plug-in specifies a template that has the repositoryKind set
> to "web" it should show up in the repository properties dialog.
>
> Steffen
>
>
> Michael Giroux wrote:
>
>> I'll be happy to read the manual, but could not find anything related. I
>> may have overlooked something. Could someone point me to appropriate
>> docs?
>>
>> Michael
>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>> news:g9422v$9t5$1@build.eclipse.org...
>>> The generic web connector provides templates for a few types of
>>> repositories. After spending a few days refining the urls and query
>>> patterns for my repository, I would like to share this with the rest of
>>> the team with something more convenient that copy/paste.
>>>
>>> How can I add a new repository template to the generic web connector?
>>>
>>> I've been looking for an extension point that I could contribute to, but
>>> no luck.
>>>
>>> I've searched the jars looking for an xml config or something, but again
>>> no luck.
>>>
>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>> extension point I need to use.
>>>
>>> Thanks
>>> Michael
>>>
>
Re: How to contribute new Generic Web templates [message #57601 is a reply to message #57577] Tue, 09 September 2008 22:51 Go to previous messageGo to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 505
Registered: July 2009
Senior Member
BTW, if you only need to share your settings, you can simply export
task query. It is exported together with the task repository
configuration. So, other users can import it and edit settings if necessary.

regards,
Eugene


Michael Giroux wrote:
> Building the plugin was quite simple. Thanks.
>
>
> Michael
>
> "Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
> news:ga6bn0$2gp$5@build.eclipse.org...
>
>> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>>
>> <extension
>> point="org.eclipse.mylyn.tasks.core.templates">
>> <repository
>> repositoryKind="web"
>> label="Subclipse (IssueZilla)"
>> urlRepository="http://subclipse.tigris.org/issues"
>> urlTask="${serverUrl}/show_bug.cgi?id="
>> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>>
>> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
>> <attribute name="queryPattern"
>> value="&lt;a href=&quot;show_bug.cgi\?id\=(
>> +?)&quot;&gt;.+?&lt;span
>> class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
>> </repository>
>> ...
>> </extension>
>>
>> If your plug-in specifies a template that has the repositoryKind set
>> to "web" it should show up in the repository properties dialog.
>>
>> Steffen
>>
>>
>> Michael Giroux wrote:
>>
>>
>>> I'll be happy to read the manual, but could not find anything related. I
>>> may have overlooked something. Could someone point me to appropriate
>>> docs?
>>>
>>> Michael
>>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>>> news:g9422v$9t5$1@build.eclipse.org...
>>>
>>>> The generic web connector provides templates for a few types of
>>>> repositories. After spending a few days refining the urls and query
>>>> patterns for my repository, I would like to share this with the rest of
>>>> the team with something more convenient that copy/paste.
>>>>
>>>> How can I add a new repository template to the generic web connector?
>>>>
>>>> I've been looking for an extension point that I could contribute to, but
>>>> no luck.
>>>>
>>>> I've searched the jars looking for an xml config or something, but again
>>>> no luck.
>>>>
>>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>>> extension point I need to use.
>>>>
>>>> Thanks
>>>> Michael
>>>>
>>>>
>
>
>
Re: How to contribute new Generic Web templates [message #57650 is a reply to message #57601] Wed, 10 September 2008 16:24 Go to previous messageGo to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Thanks Eugene. I noticed the export feature after posting the original
question.

Michael


"Eugene Kuleshov" <eu@md.pp.ru> wrote in message
news:ga6ukn$o07$1@build.eclipse.org...
>
> BTW, if you only need to share your settings, you can simply export task
> query. It is exported together with the task repository configuration. So,
> other users can import it and edit settings if necessary.
>
> regards,
> Eugene
Re: How to contribute new Generic Web templates [message #58392 is a reply to message #56855] Thu, 25 September 2008 22:42 Go to previous messageGo to next message
Menon is currently offline MenonFriend
Messages: 48
Registered: July 2009
Member
Hi
Will you be able to help me out connecting to my repository thru the
generic web connector?
My web server use windows authentication. I used
"http://.....com/project/bug" in the "Server"; This is our internal server.
User id, password - I gave my windows userid/password
In the advanced configuration:
Query Url: I used "http://.../project/bug/default.aspx?bug_id=2001"

But when I query, I get the follwoing error:
Failed to parse RSS feed: "Invalid XML: Error on line 7: The element type
"BR" must be terminated by the matching end-tag "</BR>"."
Thanks
Sunanda
Re: How to contribute new Generic Web templates [message #58412 is a reply to message #58392] Fri, 26 September 2008 05:35 Go to previous messageGo to next message
Jörg Thönnes is currently offline Jörg ThönnesFriend
Messages: 229
Registered: July 2009
Senior Member
On 09/26/08 00:42, Menon wrote:
> Hi Will you be able to help me out connecting to my repository thru the
> generic web connector?
> My web server use windows authentication. I used
> "http://.....com/project/bug" in the "Server"; This is our internal server.
> User id, password - I gave my windows userid/password
> In the advanced configuration: Query Url: I used
> "http://.../project/bug/default.aspx?bug_id=2001"
>
> But when I query, I get the follwoing error:
> Failed to parse RSS feed: "Invalid XML: Error on line 7: The element
> type "BR" must be terminated by the matching end-tag "</BR>"."

Hi Sunanda,

please check whether the query pattern is empty. In that special case, the result returned from the
web server is tried to be parsed as RSS which fails in your case.

Please check the docs in the wiki how to setup the query pattern. It is used to extract the bug ids
from the web page.

Cheers, Jörg
Re: How to contribute new Generic Web templates [message #58447 is a reply to message #58412] Fri, 26 September 2008 19:54 Go to previous messageGo to next message
Menon is currently offline MenonFriend
Messages: 48
Registered: July 2009
Member
Thanks Jorg for your advice. I used the URL below to seach all my bugs
from the browser and it works.BUt when I use the same URL in the "Query
URL" and try to ope, I get a "Network Error (tcp_error) " . When do
synchronize, I do not get any error, but it does not show any records. I
have "Integrated windows authentication" for this, so I provided my
domain\username and password instead of anonymous access. The web server
is in the intranet.

Query URL:
http://.../search/result.aspx?reloadf=2&focus=bug&us r_query_id=224&global_list=&userid_list=srmenon1& ;crofoc=&pgf=&mydiv1tb=&mydiv2tb=1

( I looked at the "view Source" in the browser of the results page- it
shows <a href="/..../default.aspx?bug_id=3772">3772</a> )

So the query pattern I usedis
<a href="/..../bug/default.aspx?bug_id=(.+?)</a>


When I do a "preview" using the above, then it says No matching results
found. Check Query regex

I tried to do "Open" with Query Url in teh advanced configurartion, I get
a "Network Error (tcp_error) "

Thanks
Sunanda
Re: How to contribute new Generic Web templates [message #58518 is a reply to message #58412] Fri, 26 September 2008 23:09 Go to previous messageGo to next message
Menon is currently offline MenonFriend
Messages: 48
Registered: July 2009
Member
Hi
I have identified my problem. Our web server is using NTLM authentication,
So it is not able to connect. Is it possible to use generic web connector
if the web server uses NTLM authentication?
Thanks
Sunanda
Re: How to contribute new Generic Web templates [message #58525 is a reply to message #58518] Sat, 27 September 2008 02:45 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
This FAQ entry provides details about support the for NTLM authentication:

http://wiki.eclipse.org/Mylyn/FAQ#NTLM_authentication

Steffen


> Hi
> I have identified my problem. Our web server is using NTLM authentication,
> So it is not able to connect. Is it possible to use generic web connector
> if the web server uses NTLM authentication?
> Thanks
> Sunanda
Re: How to contribute new Generic Web templates [message #593051 is a reply to message #56855] Mon, 08 September 2008 15:40 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
I'll be happy to read the manual, but could not find anything related. I
may have overlooked something. Could someone point me to appropriate docs?

Michael
"Michael Giroux" <michael.giroux@bull.com> wrote in message
news:g9422v$9t5$1@build.eclipse.org...
> The generic web connector provides templates for a few types of
> repositories. After spending a few days refining the urls and query
> patterns for my repository, I would like to share this with the rest of
> the team with something more convenient that copy/paste.
>
> How can I add a new repository template to the generic web connector?
>
> I've been looking for an extension point that I could contribute to, but
> no luck.
>
> I've searched the jars looking for an xml config or something, but again
> no luck.
>
> I don'm mind writing a plug-in if I have to, but cannot find the extension
> point I need to use.
>
> Thanks
> Michael
>
Re: How to contribute new Generic Web templates [message #593100 is a reply to message #57300] Tue, 09 September 2008 17:28 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:

<extension
point="org.eclipse.mylyn.tasks.core.templates">
<repository
repositoryKind="web"
label="Subclipse (IssueZilla)"
urlRepository="http://subclipse.tigris.org/issues"
urlTask="${serverUrl}/show_bug.cgi?id="
urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"

urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
<attribute name="queryPattern"
value="&lt;a href=&quot;show_bug.cgi\?id\=(
+?)&quot;&gt;.+?&lt;span class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
</repository>
...
</extension>

If your plug-in specifies a template that has the repositoryKind set
to "web" it should show up in the repository properties dialog.

Steffen


Michael Giroux wrote:

> I'll be happy to read the manual, but could not find anything related. I
> may have overlooked something. Could someone point me to appropriate
> docs?
>
> Michael
> "Michael Giroux" <michael.giroux@bull.com> wrote in message
> news:g9422v$9t5$1@build.eclipse.org...
>> The generic web connector provides templates for a few types of
>> repositories. After spending a few days refining the urls and query
>> patterns for my repository, I would like to share this with the rest of
>> the team with something more convenient that copy/paste.
>>
>> How can I add a new repository template to the generic web connector?
>>
>> I've been looking for an extension point that I could contribute to, but
>> no luck.
>>
>> I've searched the jars looking for an xml config or something, but again
>> no luck.
>>
>> I don'm mind writing a plug-in if I have to, but cannot find the
>> extension point I need to use.
>>
>> Thanks
>> Michael
>>
Re: How to contribute new Generic Web templates [message #593141 is a reply to message #57426] Tue, 09 September 2008 21:14 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Exactly what I needed. I'll dig in.

Michael

"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:ga6bn0$2gp$5@build.eclipse.org...
> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>
> <extension
> point="org.eclipse.mylyn.tasks.core.templates">
> <repository
> repositoryKind="web"
> label="Subclipse (IssueZilla)"
> urlRepository="http://subclipse.tigris.org/issues"
> urlTask="${serverUrl}/show_bug.cgi?id="
> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>
> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
> <attribute name="queryPattern"
> value="&lt;a href=&quot;show_bug.cgi\?id\=(
> +?)&quot;&gt;.+?&lt;span
> class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
> </repository>
> ...
> </extension>
>
> If your plug-in specifies a template that has the repositoryKind set
> to "web" it should show up in the repository properties dialog.
>
> Steffen
>
>
> Michael Giroux wrote:
>
>> I'll be happy to read the manual, but could not find anything related. I
>> may have overlooked something. Could someone point me to appropriate
>> docs?
>>
>> Michael
>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>> news:g9422v$9t5$1@build.eclipse.org...
>>> The generic web connector provides templates for a few types of
>>> repositories. After spending a few days refining the urls and query
>>> patterns for my repository, I would like to share this with the rest of
>>> the team with something more convenient that copy/paste.
>>>
>>> How can I add a new repository template to the generic web connector?
>>>
>>> I've been looking for an extension point that I could contribute to, but
>>> no luck.
>>>
>>> I've searched the jars looking for an xml config or something, but again
>>> no luck.
>>>
>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>> extension point I need to use.
>>>
>>> Thanks
>>> Michael
>>>
>
Re: How to contribute new Generic Web templates [message #593152 is a reply to message #57426] Tue, 09 September 2008 21:47 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Building the plugin was quite simple. Thanks.


Michael

"Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
news:ga6bn0$2gp$5@build.eclipse.org...
> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>
> <extension
> point="org.eclipse.mylyn.tasks.core.templates">
> <repository
> repositoryKind="web"
> label="Subclipse (IssueZilla)"
> urlRepository="http://subclipse.tigris.org/issues"
> urlTask="${serverUrl}/show_bug.cgi?id="
> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>
> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
> <attribute name="queryPattern"
> value="&lt;a href=&quot;show_bug.cgi\?id\=(
> +?)&quot;&gt;.+?&lt;span
> class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
> </repository>
> ...
> </extension>
>
> If your plug-in specifies a template that has the repositoryKind set
> to "web" it should show up in the repository properties dialog.
>
> Steffen
>
>
> Michael Giroux wrote:
>
>> I'll be happy to read the manual, but could not find anything related. I
>> may have overlooked something. Could someone point me to appropriate
>> docs?
>>
>> Michael
>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>> news:g9422v$9t5$1@build.eclipse.org...
>>> The generic web connector provides templates for a few types of
>>> repositories. After spending a few days refining the urls and query
>>> patterns for my repository, I would like to share this with the rest of
>>> the team with something more convenient that copy/paste.
>>>
>>> How can I add a new repository template to the generic web connector?
>>>
>>> I've been looking for an extension point that I could contribute to, but
>>> no luck.
>>>
>>> I've searched the jars looking for an xml config or something, but again
>>> no luck.
>>>
>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>> extension point I need to use.
>>>
>>> Thanks
>>> Michael
>>>
>
Re: How to contribute new Generic Web templates [message #593165 is a reply to message #57577] Tue, 09 September 2008 22:51 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 505
Registered: July 2009
Senior Member
BTW, if you only need to share your settings, you can simply export
task query. It is exported together with the task repository
configuration. So, other users can import it and edit settings if necessary.

regards,
Eugene


Michael Giroux wrote:
> Building the plugin was quite simple. Thanks.
>
>
> Michael
>
> "Steffen Pingel" <steffen.pingel@tasktop.com> wrote in message
> news:ga6bn0$2gp$5@build.eclipse.org...
>
>> Take a look at the plugin.xml of the org.eclipse.mylyn.web.tasks plug-in:
>>
>> <extension
>> point="org.eclipse.mylyn.tasks.core.templates">
>> <repository
>> repositoryKind="web"
>> label="Subclipse (IssueZilla)"
>> urlRepository="http://subclipse.tigris.org/issues"
>> urlTask="${serverUrl}/show_bug.cgi?id="
>> urlNewTask="${serverUrl}/enter_bug.cgi?component=subclipse"
>>
>> urlTaskQuery=" ${serverUrl}/buglist.cgi?issue_status=NEW&amp;issue_stat us=STARTED&amp;issue_status=REOPENED&amp;order=Issue +Number ">
>> <attribute name="queryPattern"
>> value="&lt;a href=&quot;show_bug.cgi\?id\=(
>> +?)&quot;&gt;.+?&lt;span
>> class=&quot;summary&quot;&gt;(.+?)&lt;/span& amp;gt; "/>
>> </repository>
>> ...
>> </extension>
>>
>> If your plug-in specifies a template that has the repositoryKind set
>> to "web" it should show up in the repository properties dialog.
>>
>> Steffen
>>
>>
>> Michael Giroux wrote:
>>
>>
>>> I'll be happy to read the manual, but could not find anything related. I
>>> may have overlooked something. Could someone point me to appropriate
>>> docs?
>>>
>>> Michael
>>> "Michael Giroux" <michael.giroux@bull.com> wrote in message
>>> news:g9422v$9t5$1@build.eclipse.org...
>>>
>>>> The generic web connector provides templates for a few types of
>>>> repositories. After spending a few days refining the urls and query
>>>> patterns for my repository, I would like to share this with the rest of
>>>> the team with something more convenient that copy/paste.
>>>>
>>>> How can I add a new repository template to the generic web connector?
>>>>
>>>> I've been looking for an extension point that I could contribute to, but
>>>> no luck.
>>>>
>>>> I've searched the jars looking for an xml config or something, but again
>>>> no luck.
>>>>
>>>> I don'm mind writing a plug-in if I have to, but cannot find the
>>>> extension point I need to use.
>>>>
>>>> Thanks
>>>> Michael
>>>>
>>>>
>
>
>
Re: How to contribute new Generic Web templates [message #593188 is a reply to message #57601] Wed, 10 September 2008 16:24 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 287
Registered: July 2009
Senior Member
Thanks Eugene. I noticed the export feature after posting the original
question.

Michael


"Eugene Kuleshov" <eu@md.pp.ru> wrote in message
news:ga6ukn$o07$1@build.eclipse.org...
>
> BTW, if you only need to share your settings, you can simply export task
> query. It is exported together with the task repository configuration. So,
> other users can import it and edit settings if necessary.
>
> regards,
> Eugene
Re: How to contribute new Generic Web templates [message #593498 is a reply to message #56855] Thu, 25 September 2008 22:42 Go to previous message
Menon is currently offline MenonFriend
Messages: 48
Registered: July 2009
Member
Hi
Will you be able to help me out connecting to my repository thru the
generic web connector?
My web server use windows authentication. I used
"http://.....com/project/bug" in the "Server"; This is our internal server.
User id, password - I gave my windows userid/password
In the advanced configuration:
Query Url: I used "http://.../project/bug/default.aspx?bug_id=2001"

But when I query, I get the follwoing error:
Failed to parse RSS feed: "Invalid XML: Error on line 7: The element type
"BR" must be terminated by the matching end-tag "</BR>"."
Thanks
Sunanda
Re: How to contribute new Generic Web templates [message #593506 is a reply to message #58392] Fri, 26 September 2008 05:35 Go to previous message
Jörg Thönnes is currently offline Jörg ThönnesFriend
Messages: 229
Registered: July 2009
Senior Member
On 09/26/08 00:42, Menon wrote:
> Hi Will you be able to help me out connecting to my repository thru the
> generic web connector?
> My web server use windows authentication. I used
> "http://.....com/project/bug" in the "Server"; This is our internal server.
> User id, password - I gave my windows userid/password
> In the advanced configuration: Query Url: I used
> "http://.../project/bug/default.aspx?bug_id=2001"
>
> But when I query, I get the follwoing error:
> Failed to parse RSS feed: "Invalid XML: Error on line 7: The element
> type "BR" must be terminated by the matching end-tag "</BR>"."

Hi Sunanda,

please check whether the query pattern is empty. In that special case, the result returned from the
web server is tried to be parsed as RSS which fails in your case.

Please check the docs in the wiki how to setup the query pattern. It is used to extract the bug ids
from the web page.

Cheers, Jörg
Re: How to contribute new Generic Web templates [message #593526 is a reply to message #58412] Fri, 26 September 2008 19:54 Go to previous message
Menon is currently offline MenonFriend
Messages: 48
Registered: July 2009
Member
Thanks Jorg for your advice. I used the URL below to seach all my bugs
from the browser and it works.BUt when I use the same URL in the "Query
URL" and try to ope, I get a "Network Error (tcp_error) " . When do
synchronize, I do not get any error, but it does not show any records. I
have "Integrated windows authentication" for this, so I provided my
domain\username and password instead of anonymous access. The web server
is in the intranet.

Query URL:
http://.../search/result.aspx?reloadf=2&focus=bug&us r_query_id=224&global_list=&userid_list=srmenon1& ;crofoc=&pgf=&mydiv1tb=&mydiv2tb=1

( I looked at the "view Source" in the browser of the results page- it
shows <a href="/..../default.aspx?bug_id=3772">3772</a> )

So the query pattern I usedis
<a href="/..../bug/default.aspx?bug_id=(.+?)</a>


When I do a "preview" using the above, then it says No matching results
found. Check Query regex

I tried to do "Open" with Query Url in teh advanced configurartion, I get
a "Network Error (tcp_error) "

Thanks
Sunanda
Re: How to contribute new Generic Web templates [message #593546 is a reply to message #58412] Fri, 26 September 2008 23:09 Go to previous message
Menon is currently offline MenonFriend
Messages: 48
Registered: July 2009
Member
Hi
I have identified my problem. Our web server is using NTLM authentication,
So it is not able to connect. Is it possible to use generic web connector
if the web server uses NTLM authentication?
Thanks
Sunanda
Re: How to contribute new Generic Web templates [message #593551 is a reply to message #58518] Sat, 27 September 2008 02:45 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
This FAQ entry provides details about support the for NTLM authentication:

http://wiki.eclipse.org/Mylyn/FAQ#NTLM_authentication

Steffen


> Hi
> I have identified my problem. Our web server is using NTLM authentication,
> So it is not able to connect. Is it possible to use generic web connector
> if the web server uses NTLM authentication?
> Thanks
> Sunanda
Previous Topic:Mylyn 3.0.2 and org.eclipse.mylyn.web.core?
Next Topic:Losing context with Mylyn 2.3.2
Goto Forum:
  


Current Time: Sun Dec 21 07:09:20 GMT 2014

Powered by FUDForum. Page generated in 0.05537 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software