You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dhiraj Bokde (JIRA)" <ji...@apache.org> on 2015/09/18 09:52:04 UTC

[jira] [Resolved] (CAMEL-8898) ElementNotFoundException on LinkedIn authentication

     [ https://issues.apache.org/jira/browse/CAMEL-8898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dhiraj Bokde resolved CAMEL-8898.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.15.4

Fixed component to handle LinkedIn's new style of returning oauth errors, also added w_share scope. 
Adding a test account is dicey, since anyone with access to the branch could cause havoc, creating issues in builds, which will have to be constantly chased down in the future. So I'm not adding a test LinkedIn account or a test branch. This is also the case with a lot of other Camel components that require an account with other service providers, for e.g. Facebook, which means that integration testing has to be done manually or in a controlled QE environment. 

> ElementNotFoundException on LinkedIn authentication
> ---------------------------------------------------
>
>                 Key: CAMEL-8898
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8898
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.15.2
>            Reporter: Thomas Diesler
>            Assignee: Dhiraj Bokde
>             Fix For: 2.16.0, 2.15.4
>
>
> {code}
> Caused by: com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[form] attributeName=[name] attributeValue=[oauth2SAuthorizeForm]
> 	at com.gargoylesoftware.htmlunit.html.HtmlPage.getFormByName(HtmlPage.java:669)
> 	at org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:169)
> 	at org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.updateOAuthToken(LinkedInOAuthRequestFilter.java:279)
> 	at org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.filter(LinkedInOAuthRequestFilter.java:240)
> 	at org.apache.cxf.jaxrs.client.spec.ClientRequestFilterInterceptor.handleMessage(ClientRequestFilterInterceptor.java:60)
> {code}
> To reproduce:
> 1. add your credentials to src/test/resources/test-options.properties
> 2. run [camel-linkedin-component]$ mvn clean install -P linkedin-test



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)