camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhiraj Bokde (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8898) ElementNotFoundException on LinkedIn authentication
Date Fri, 18 Sep 2015 08:02:04 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14805171#comment-14805171
] 

Dhiraj Bokde commented on CAMEL-8898:
-------------------------------------

The default scopes for LinkedIn apps that have not been verified are r_basicprofile,r_emailaddress,rw_company_admin,w_share.
A number of tests fail without a verified app, hence it's recommended to use one for integration
testing with -Plinkedin-test. 

> 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)

Mime
View raw message