[
http://jira.codehaus.org/browse/MCHANGES-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229608#action_229608
]
Krashan Brahmanjara commented on MCHANGES-200:
----------------------------------------------
Above problem occurs if ssl and authentication login page are enabled together.
Resolution
Problem is in class AbstractJiraDownloader. Page
http://confluence.atlassian.com/display/JIRA/Receiving+Search+Results+as+an+RSS+Feed
suggest to add param os_authType=basic to login url and this is what we need.
So the patch is :
private boolean doJiraAuthentication(HttpClient client, final String jiraUrl) {
// log into JIRA if we have to
String loginUrl = null;
StringBuffer loginLink = new StringBuffer(jiraUrl);
- loginLink.append("/login.jsp?os_destination=/secure/");
+ loginLink.append("/login.jsp?os_authType=basic&os_destination=/secure/");
loginLink.append("&os_username=").append(jiraUser);
String password = null;
if (jiraPassword != null) {
password = StringUtils.repeat("*", jiraPassword.length());
}
getLog().debug("Login URL: " + loginLink + "&os_password=" + password);
loginLink.append("&os_password=").append(jiraPassword);
loginUrl = loginLink.toString();
+ client.getState().setCredentials(
+ new HttpAuthRealm(null,null),
+ new UsernamePasswordCredentials( jiraUser, jiraPassword ) );
()...
> Problem with login to jira over https and proxy
> -----------------------------------------------
>
> Key: MCHANGES-200
> URL: http://jira.codehaus.org/browse/MCHANGES-200
> Project: Maven 2.x Changes Plugin
> Issue Type: Bug
> Environment: Jdk 1.6_18
> Jira Enterprise Edition, Version: 3.13.3-#344)
> Reporter: Krashan Brahmanjara
>
> I cannot get changes log from JIRA but url used by maven is correct.
> I mean url
> https://jira.prv.pl/secure/IssueNavigator.jspa?view=rss&pid=INSCS&resolution=1&sorter/field=issuetype&sorter/order=ASC&tempMax=100&reset=true&decorator=none
> get correct xml in browsers like FF or IE however untrusted certificate info
> are displayed..
> BTW
> Login phase is very long.
> Deatils
> [DEBUG] Using proxy: 10.4.1.1 at port 3118
> [DEBUG] JIRA lives at: https://jira.prv.pl
> [DEBUG] Login URL:
> https://jira.prv.pl/login.jsp?os_destination=/secure/&os_username=TR$%^&os_password=*****************
> [DEBUG] Successfully logged in into JIRA.
> [DEBUG] download jira issues from url
> https://jira.prv.pl/secure/IssueNavigator.jspa?view=rss&pid=INSCS&resolution=1&sorter/field=issuetype&sorter/order=ASC&tempMax=100&reset=true&decorator=none
> [INFO] Downloading from JIRA at:
> https://jira.prv.pl/secure/IssueNavigator.jspa?view=rss&pid=INSCS&resolution=1&sorter/field=issuetype&sorter/order=ASC&tempMax=100&reset=true&decorator=none
> [WARNING] Downloading from JIRA failed. Received: [503]
> Pom configuration
> <issueManagement>
> <system>jira</system>
> <url>https://jira.prv.pl/browse?id=INSCS</url>
> </issueManagement>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-changes-plugin</artifactId>
> <version>2.3</version>
> <reportSets>
> <reportSet>
> <reports>
> </reports>
> </reportSet>
> </reportSets>
> <configuration>
> <onlyCurrentVersion>true</onlyCurrentVersion>
>
> <filter>resolution=1&sorter/field=issuetype&sorter/order=ASC</filter>
> <statusIds>Closed</statusIds>
> <jiraPassword>xxxxx</jiraPassword>
> <jiraUser>TR</jiraUser>
> <onlyCurrentVersion>true</onlyCurrentVersion>
> </configuration>
> </plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira