[
https://issues.apache.org/jira/browse/CAMEL-13179?focusedWorklogId=197465&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-197465
]
ASF GitHub Bot logged work on CAMEL-13179:
------------------------------------------
Author: ASF GitHub Bot
Created on: 12/Feb/19 10:03
Start Date: 12/Feb/19 10:03
Worklog Time Spent: 10m
Work Description: JiriOndrusek commented on pull request #2761:
[CAMEL-13179] camel-linkedin - IllegalArgumentException
URL: https://github.com/apache/camel/pull/2761
Issue: https://issues.apache.org/jira/browse/CAMEL-13179
Changes in linkedin authentication has to be reflected in camel component
(see https://developer.linkedin.com/docs/oauth2)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 197465)
Time Spent: 10m
Remaining Estimate: 0h
> camel-linkedin - IllegalArgumentException: Error authorizing application
> during linkedin authentication
> -------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-13179
> URL: https://issues.apache.org/jira/browse/CAMEL-13179
> Project: Camel
> Issue Type: Bug
> Components: camel-linkedin
> Affects Versions: 3.0.0
> Reporter: Jiri Ondrusek
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> There is a problem during authentication to linkedin. Which ends with
> following exception:
> {noformat}
> java.lang.IllegalArgumentException: Error authorizing application: Error
> authorizing application:
> at
> org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:235)
> at
> org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.updateOAuthToken(LinkedInOAuthRequestFilter.java:307)
> at
> org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.<init>(LinkedInOAuthRequestFilter.java:123)
> at
> org.apache.camel.component.linkedin.api.AbstractResourceIntegrationTest.createOAuthHelper(AbstractResourceIntegrationTest.java:102)
> at
> org.apache.camel.component.linkedin.api.AbstractResourceIntegrationTest.beforeClass(AbstractResourceIntegrationTest.java:62)
> at
> org.apache.camel.component.linkedin.api.SearchResourceIntegrationTest.beforeClass(SearchResourceIntegrationTest.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
> at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> at
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
> at
> com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
> at
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
> Caused by: java.lang.IllegalArgumentException: Error authorizing application:
> at
> org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:189)
> {noformat}
> How to simulate:
> 1. add your credentials to src/test/resources/test-options.properties
> 2. run [camel-linkedin-api]$ mvn clean install -P linkedin-test
> -Dtest=SearchResourceIntegrationTest
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)