Invalid null providerId GET parameter should fail early.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 30 Apr 2004 15:33:42 +0000 (15:33 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 30 Apr 2004 15:33:42 +0000 (15:33 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1040 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/hs/HandleServlet.java

index d0ebd8c..1695f4c 100644 (file)
@@ -177,6 +177,8 @@ public class HandleServlet extends TargetFederationComponent {
                        String remoteProviderId = req.getParameter("providerId");
                        if (remoteProviderId == null) {
                                relyingParty = targetMapper.getLegacyRelyingParty();
+                       } else if (remoteProviderId.equals("")) {
+                               throw new InvalidClientDataException("Invalid service provider id.");
                        } else {
                                log.debug("Remote provider has identified itself as: (" + remoteProviderId + ").");
                                relyingParty = targetMapper.getRelyingParty(req.getParameter("providerId"));