/*
- * Copyright 2001-2010 Internet2
+ * Copyright 2001-2011 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Since we're passing the ACS by value, we need to compute the return URL,
// so we'll need the target resource for real.
recoverRelayState(app, request, request, target, false);
+ limitRelayState(m_log, app, request, target.c_str());
}
else {
// Check for a hardwired target value in the map or handler.
// If we picked by index, validate the ACS for use with this protocol.
if (!ACS || !XMLString::equals(getProtocolFamily(), ACS->getProtocolFamily())) {
- request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 1.x ACS, using default SAML 1.x ACS");
+ if (ACS)
+ request.log(SPRequest::SPWarn, "invalid acsIndex property, or non-SAML 1.x ACS, using default SAML 1.x ACS");
ACS = app.getAssertionConsumerServiceByProtocol(getProtocolFamily());
if (!ACS)
throw ConfigurationException("Unable to locate a SAML 1.x ACS endpoint to use for response.");