Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Webcal redirect loop?

Attempting to access the web calendar interface (https://server.com/webcal) brings me to a login screen. After logging in, I get stuck in a redirect loop:


Using Chrome:

The webpage at https://server.com/auth?redirect=https://server.com/webcal/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.


Firefox:

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


https://server.com/auth?redirect=https://server.com/webcal is redirecting to https://server.com/webcal/?auth_token=6F878E5F-3B76-4787-84C7-6EB2AF540AC7, which just redirects it back to the auth page, indefinitely.


I can log into Profile Manager and the Change Password Utility. If I try to navigate directly to https://server.com/auth, it redirects to https://server.com/wiki (which I have disabled). If I enable Wiki I get the exact same redirect loop issue, however.



This was from an upgrade install, not a fresh install (if there even is such a thing). Accessing calendars via CalDAV works fine.


Any suggestions?

Mac mini, Mac OS X (10.7), Server

Posted on Jul 21, 2011 8:49 AM

Reply
Question marked as Best reply

Posted on Jul 22, 2011 9:31 AM

In Terminal.app run the following command:


sudo serveradmin settings calendar:Authentication:Wiki:URL = "http://127.0.0.1:8089/RPC2"


...then use Server.app to stop and start calendar server.


The issue is that some upgrades end up with a leftover value for this configuration key, and the above command will set it right.

39 replies

Aug 15, 2011 11:57 PM in response to Jordy van Kuijk

I solved it for me.... but I have no idea why :-)


Try the following thing: Disable wiki-Server. Create a brand new user on the server. Clean Safari Cache/Cookies. Now go to https://servername/webcal and login with the shortname of the new user - worked for me.


So why....


Logout and try to login with the full name of the user. Now redirection loop comes up retry with short name: same thing. Cleanup Safari cache and cookies again - use the short name to login again - it works....


Somehow it seems to have to do with the mapping username=>shortname - but why does the system try to authenticate via the wiki service when using the full name? Bug? Hidden, undocumented feature? However.... just use shortnames and everything seems to be fine.

Aug 31, 2011 1:07 PM in response to Jordy van Kuijk

I confirm this worked for me too. The local admin account and all new open directory accounts I created would open webcal. However the 10 open directory accounts I added at initial server configuration would not open webcal. So deleting the OD accounts and adding them back worked. Old emails seems to stay in place upon recreation of the new account. At least for my account when I recreated it.


Agree kind of a server nightmare so far. Had to do a clean install three times to get it to take. However this time all seems to be working except for the webcal, which hopeful is fixed by this workaround. Cross my fingers...

Sep 4, 2011 7:32 AM in response to _morgen__

Morgan,


Thank you - I was getting redirect messages and my wiki clendars were stuckon "too many redirects." Your suggestion let my wiki calendars complete their loading and, once I cleared the cache in Safari, my personal calendar loaded fine.


Excellent solution.


As background, I had everything working fine when I initially set up Lion Server, but when I changed the domain name to a fully qualified domain nane and changed my certificates to match, I was left with someodd problems here and there. This appears to have been one of those.


Thanks for freeing up the rest of my Sunday!


Caitlyn

Sep 4, 2011 9:24 AM in response to kyleaa

I have the same problem with one account (mine). When I try to login I get a message the page could not be loaded because it loops. All other accounts are able to login. They can see and edit there calendars. I am the only one having this problem.


I do not have special rights on my account so that could explain why I cannot and other can login. There is one difference I found in the /var/log/colladb/wikidcompatibility.log. When someone logs in the following information is posted in the log serveral times:


DEBUG:root:response from auth server:

{"shortname":"##SHORT NAME##,"generated_uid":"***,"succeeded":true,"uid":"***","longname":"##FULL NAME##"}


When someone logs in the log shows at the ##SHORT NAME## the shortname, and the fullname at ##FULL NAME##, just as it should be. But when I log in my fullname is presented at the ##SHORT NAME## space. But my shortname is not the same as my full name. Also I am able to login on webmail (for example) using my short name. I looked in the OD using the Workgroup Manager and there I see my shortname in the 'Short name' field. So why webcal (or the authentication process of it) somehow uses my full name (when I entered my short name) is quite a mistery to me.


Anyone any thoughts how to fix this?


Regards.



Thomas.

Webcal redirect loop?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.