Community
Participate
Working Groups
Build Identifier: 20100617-1415 I am using Eclipse's Advanced Web Template to connect to Redmine's repository. The tasks are being fetched well from the chosen repository, but then I double click on a task I can't see the correct task page in the internal or external browser, because the URL generated by Mylyn is wrong. For example: I double click on task number "5" and it should lead to "http://my.website.com/issues/5", but instead it misses the trailing backslash and tries to open the url "http://my.website.com/issues5". ("...issues5" instead of "issues/5") So instead of seeing the task I get HTTP error 404 with a message "The page you were trying to access doesn't exist or has been removed". I think this bug is somehow related to the bug 167282. Reproducible: Always Steps to Reproduce: 1. Install Mylyn and Advanced Web Template into Eclipse (Helios Build ID 20100617-1415) 2. Add Redmine's repository using http://www.redmine.org/wiki/1/HowTo_Mylyn as a reference. (Some necessary modifications I will describe below). 3. For test purposes use http://www.redmine.org for server. (You may need to register there to use your credentials). 4. When creating repository in Web Repository Settings for "Task URL" copy paste "${serverUrl}/projects/redmine/issues". 5. For "New task URL" paste "${serverUrl}/projects/redmine/issues/new" 6. "Query request URL" is the same as "Task URL". 7. For query pattern use: <td class="tracker">({Type}.+?)</td><td class="status">({Status}.+?)</td>.*?<td class="subject">.*?<a href="/issues/({Id}\d+)">({Description}.+?)</a></td> 8. Other options are the same as in the reference admin as in step 2. (Don't forget to include "loginToken" variable. 9. Finally when you see www.redmine.org's tasks double click on any task. 10. Instead of seeing the task, you will get HTTP 404 error.
I found that is probably not a bug but configuration problem. To avoid this issue I changed three lines in repository configuration. So it should be: 1) Task URL: ${serverUrl}/issues/ 2) New task URL: ${serverUrl}/projects/${project_id}}/issues/new 3) Query task URL: ${serverUrl}/projects/${project_id}}/issues I guess that item (3) should have no traling slash, while item (1) needs a slash. Before both on (1) and on (3) I had traling slashes. After modifying these three lines I don't have the issue of wrong URL when viewing a task.
Great that you were able to resolve and thanks for posting the solution!