You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dh...@apache.org on 2016/07/25 07:01:32 UTC

camel git commit: CAMEL-10094: Use meaningful LinkedIn error message for oauth2 auth error

Repository: camel
Updated Branches:
  refs/heads/master fd7852b1c -> 90535ba80


CAMEL-10094: Use meaningful LinkedIn error message for oauth2 auth error


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/90535ba8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/90535ba8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/90535ba8

Branch: refs/heads/master
Commit: 90535ba809dde19da37d061ceb9e7035cb1fc932
Parents: fd7852b
Author: Dhiraj Bokde <dh...@yahoo.com>
Authored: Mon Jul 25 00:00:46 2016 -0700
Committer: Dhiraj Bokde <dh...@yahoo.com>
Committed: Mon Jul 25 00:01:18 2016 -0700

----------------------------------------------------------------------
 .../camel/component/linkedin/api/LinkedInOAuthRequestFilter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/90535ba8/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
index a54c21a..d78f095 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
+++ b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
@@ -205,7 +205,7 @@ public final class LinkedInOAuthRequestFilter implements ClientRequestFilter {
                 redirectQuery = new URL(location).getQuery();
             }
             if (redirectQuery == null) {
-                throw new IllegalArgumentException("Redirect Query is null cannot use it as input");
+                throw new IllegalArgumentException("Redirect response query is null, check username, password and permissions");
             }
             final Map<String, String> params = new HashMap<String, String>();
             final Matcher matcher = QUERY_PARAM_PATTERN.matcher(redirectQuery);