HTTPConnector

Jim Fox fox at washington.edu
Tue Oct 23 17:30:17 EDT 2018


My initial attempt at the HTTP connector also get this error.  It comes 
from the script being run twice.
I log entry into the script
   logger.info("=== gws groups");
and log other script activity.  This is what shows in the log:

    2018-10-23 14:23:43,100 - DEBUG [net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedURLBuilder:173] - Template text https://urizen.s.uw.edu/json.cgi yields https://urizen.s.uw.edu/json.cgi
    2018-10-23 14:23:43,191 - DEBUG [net.shibboleth.idp.attribute.resolver.dc.http.impl.ScriptedResponseMappingStrategy:134] - gws: Handling HTTP response
    2018-10-23 14:23:43,192 - DEBUG [net.shibboleth.idp.attribute.resolver.dc.http.impl.ScriptedResponseMappingStrategy:162] - gws: Adding to-be-populated attribute set 'connectorResults' to script context
    2018-10-23 14:23:43,259 - INFO [net.shibboleth.idp.attribute:7] - === gws groups
    2018-10-23 14:23:43,311 - INFO [net.shibboleth.idp.attribute:12] - [object Object]
    2018-10-23 14:23:43,324 - INFO [net.shibboleth.idp.attribute:18] - [object Object]
    2018-10-23 14:23:43,326 - INFO [net.shibboleth.idp.attribute:19] - fox
    2018-10-23 14:23:43,347 - INFO [net.shibboleth.idp.attribute:35] - === gws groups
    2018-10-23 14:23:43,354 - ERROR [net.shibboleth.idp.profile.impl.ResolveAttributes:314] - Profile Action ResolveAttributes: Error resolving attributes
       net.shibboleth.idp.attribute.resolver.ResolutionException: Data Connector 'gws': HTTP request failed
            at net.shibboleth.idp.attribute.resolver.dc.http.impl.HTTPDataConnector.retrieveAttributes(HTTPDataConnector.java:109)

Note at 14:23:43,347 the script is being run a second time.  That gives the error.

Jim


On Mon, 22 Oct 2018, Cantor, Scott wrote:

> Date: Mon, 22 Oct 2018 06:39:48
> From: "Cantor, Scott" <cantor.2 at osu.edu>
> To: Shib Users <users at shibboleth.net>
> Reply-To: Shib Users <users at shibboleth.net>
> Subject: RE: HTTPConnector
> 
>> I am trying to use the HTTPConnector to obtain attributes from a web service.
>> For this reason I copied the example from the shibboleth wiki. When the idp
>> resolves the attributes it produces an "Attempted read from closed stream"
>> error. How can I fix this?
>
> I did not run into any error of that sort, so I don't have any particular insight. You'd have to debug into the response.getEntity method on the HTTP client library. I imagine something's wrong with the web service's response.
>
> -- Scott
>
> -- 
> For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
>


More information about the users mailing list