cancel
Showing results for 
Search instead for 
Did you mean: 

wcs/api/people with ?groups=true READ TIMEOUT

bopolissimus
Confirmed Champ
Confirmed Champ
Hi All,

I have an alfresco 5.0.d instance which is configured for external auth.  /share and alfresco both have external auth against CAS (using a specific Header) configured.  I am able to login to /share using the header that apache (using mod_auth_cas) passes on to /share after the CAS redirect.  Users are synced into alfresco from LDAP.

So authentication is good.  but getting the initial /share dashboard takes more than 2 minutes.  Once past the initial /share page regular operations are fine.

I've tracked down this slowness to a read timeout when /alfresco takes forever to reply to:

  http://127.0.0.1:8080/alfresco/wcs/api/people/[username]?groups=true

where [username] is a valid user in CAS.

When I login, that request goes by, and when it finally times out the dashboard appears.

When I curl that URL (with -H "[CAS-Header]:[username]" but without the ?groups=true (either no groups parameter at all, or with ?groups=false or even with ?groups=TRUE or ?groups=1, etc) then curl returns immediately with json information about the given user.

When I curl with ?groups=true it looks like I don't get any reply at all (I'll leave curl running overnight, see if it times out).  In a browser it fails with a read timeout and an exception in catalina.out.

Has anyone seen this or have a clue what bits of configuration are relevant?  What is special about groups=true?

Gerald Quimpo
2 REPLIES 2

jasonreid
Champ in-the-making
Champ in-the-making

Hi

We seem to be having the same issue - did you find out anything? We have one suspicion that it is because we have imported a lot of users - around 130,000.

Jason

Hey Jason - ‌ hasn't logged in since we moved to this new community, so I don't know that they will be back to help. I'll send the original post to a couple members and hopefully they'll have some insight!