cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1500671 - in /cxf/branches/2.7.x-fixes: ./ rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
Date Mon, 08 Jul 2013 11:37:48 GMT
Author: sergeyb
Date: Mon Jul  8 11:37:48 2013
New Revision: 1500671

URL: http://svn.apache.org/r1500671
Log:
Merged revisions 1500669 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1500669 | sergeyb | 2013-07-08 12:32:56 +0100 (Mon, 08 Jul 2013) | 1 line
  
  [CXF-5112] Returning exception Response directly
........

Modified:
    cxf/branches/2.7.x-fixes/   (props changed)
    cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
  Merged /cxf/trunk:r1500669

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java?rev=1500671&r1=1500670&r2=1500671&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/utils/OAuthUtils.java
Mon Jul  8 11:37:48 2013
@@ -31,7 +31,6 @@ import java.util.StringTokenizer;
 import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import javax.ws.rs.NotAuthorizedException;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.MultivaluedMap;
 import javax.ws.rs.core.Response;
@@ -182,7 +181,7 @@ public final class OAuthUtils {
                 builder.entity(e.getMessage());    
             }
         }
-        throw new NotAuthorizedException(builder.build());
+        return builder.build();
     }
 
     public static List<String> parseParamValue(String paramValue, String defaultValue)




Mime
View raw message