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

2016-07-25 Thread dhirajsb
Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x ae6993976 -> ecab52ae7


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/ecab52ae
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ecab52ae
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ecab52ae

Branch: refs/heads/camel-2.17.x
Commit: ecab52ae72f1b100474a152f831586f8555d9437
Parents: ae69939
Author: Dhiraj Bokde 
Authored: Mon Jul 25 00:00:46 2016 -0700
Committer: Dhiraj Bokde 
Committed: Mon Jul 25 00:02:01 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/ecab52ae/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 params = new HashMap();
 final Matcher matcher = QUERY_PARAM_PATTERN.matcher(redirectQuery);



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

2016-07-25 Thread dhirajsb
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 
Authored: Mon Jul 25 00:00:46 2016 -0700
Committer: Dhiraj Bokde 
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 params = new HashMap();
 final Matcher matcher = QUERY_PARAM_PATTERN.matcher(redirectQuery);