cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: More info required

Found a cyclic link in ...

These lines from debug.log file shows what have happened when I tried to use HttpsRedirectPlugin with a foswiki 1.1.2 installation. The https redirect plugin is at the latest and from the browser I got this message: Found a cyclic link in https://www.mywiki.com/bin/view/Main/WebHome. What could be going wrong here ?

2011-10-14T18:31:05Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
2011-10-14T18:31:06Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
2011-10-14T18:31:07Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
2011-10-14T18:31:08Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
2011-10-14T18:31:09Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
2011-10-14T18:31:09Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
2011-10-14T18:31:10Z debug HTTPS redirect to: https://www.mywiki.com/bin/view/Main/WebHome
I am also using apache virtual host for it. The conf file contents is below.

<VirtualHost *:443>
 DocumentRoot "/var/www/html/foswiki-1.1.2"
 ServerName www.mywiki.com
 RedirectMatch ^/$ https://www.mywiki.com/bin/view/Main/WebHome 
</VirtualHost>

<VirtualHost *:80>
 DocumentRoot "/var/www/html/foswiki-1.1.2"
 ServerName www.mywiki.com
 RedirectMatch ^/$ http://www.mywiki.com/bin/view/Main/WebHome 
</VirtualHost>


Please post complete apache configuration related to foswiki and apache access_log.

-- GilmarSantosJr - 13 Dec 2011

The wiki.conf file is the one which configures related foswiki instance at an apache server. You should add to this file the virtual host tags previously posted here plus an out-of-box apache configuration. This first block was taken from apache access_log file.

192.168.0.1 - - [14/Dec/2011:10:26:22 -0200] "GET / HTTP/1.1" 302 329
192.168.0.1 - - [14/Dec/2011:10:26:22 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 401 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:29 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - - [14/Dec/2011:10:26:37 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 401 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:45 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:46 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:47 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:47 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:48 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - wikiuser [14/Dec/2011:10:26:49 -0200] "GET /bin/view/Main/WebHome HTTP/1.1" 302 -
192.168.0.1 - - [14/Dec/2011:10:26:49 -0200] "GET /favicon.ico HTTP/1.1" 404 289
192.168.0.1 - - [14/Dec/2011:10:26:49 -0200] "GET /favicon.ico HTTP/1.1" 404 289

And this second block was taken from apaches's error_log file. Although you might find by this log that there is a problem while trying to authenticate on the LDAP server, I should mention that LDAP authentication is properly working and authenticating. When HttpsRedirectPlugin is disabled, the user logs in without any problem and these log occurences are still logged in apache's error_log file.

[Wed Dec 14 10:29:24 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:24 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:24 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:24 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:24 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:24 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:29 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP
[Wed Dec 14 10:29:30 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:30 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:30 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:30 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:30 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:30 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:31 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP
[Wed Dec 14 10:29:32 2011] [error] [client 192.168.0.1] - LdapContrib - wikiuser is unknown, need to refresh part of the ldap cache
[Wed Dec 14 10:29:32 2011] [error] [client 192.168.0.1] - LdapContrib - called search(filter=(&(objectClass=posixAccount)(uid=wikiuser)), base=dc=com, scope=sub, limit=0, attrs=*)
[Wed Dec 14 10:29:32 2011] [error] [client 192.168.0.1] - LdapContrib - proxy bind
[Wed Dec 14 10:29:32 2011] [error] [client 192.168.0.1] - LdapContrib - found 0 entries
[Wed Dec 14 10:29:32 2011] [error] [client 192.168.0.1] - LdapContrib - Login invalid
[Wed Dec 14 10:29:32 2011] [error] [client 192.168.0.1] - LdapContrib - WARNING: oops, no result looking for user wikiuser in LDAP

-- BernardoCosta - 13 Dec 2011
 

QuestionForm edit

Subject Using an extension
Extension HttpsRedirectPlugin
Version Foswiki 1.1.2
Status More info required
Related Topics
Topic attachments
I Attachment Action Size Date Who Comment
wiki.confconf wiki.conf manage 5 K 13 Dec 2011 - 20:40 BernardoCosta Apache file which configures related foswiki instance
Topic revision: r7 - 15 Dec 2011, BernardoCosta - This page was cached on 22 Jun 2018 - 02:38.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy