lib-edocs now edocs

3 views
Skip to first unread message

Mark Jordan

unread,
Mar 6, 2009, 11:58:03 AM3/6/09
to Richard Dancy, qubit-dev
Hi Richard,

We've made lib-edocs.lib.sfu.ca live as edocs.lib.sfu.ca. However, I just went to http://edocs.lib.sfu.ca/collectionsSFU/qubit/ -- all was well until I browsed or searched. Not found... I assume qubit registers the site's base URL and since it was installed on lib-edocs, that base URL doesn't match up any more.

Cc'ing qubit-dev to see if there's a quick fix...

Mark

Mark Jordan
Head of Library Systems
W.A.C. Bennett Library, Simon Fraser University
Burnaby, British Columbia, V5A 1S6, Canada
Voice: 778.782.5753 / Fax: 778.782.3023
mjo...@sfu.ca

Mark Jordan

unread,
Mar 6, 2009, 12:02:20 PM3/6/09
to qubi...@googlegroups.com, Richard Dancy
Sorry guys, I should have added that edocs.lib.sfu.ca is an alias to lib-edocs.lib.sfu.ca.

Mark

Jack Bates

unread,
Mar 9, 2009, 2:10:38 PM3/9/09
to Qubit Toolkit Developers
Oi Mark, this one has me stumped : (

Here's the low down, AFAICT: I think the edocs site works with the
script name in the URL: http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/index.php/page/about

- but not with what symfony calls the "no_script_name" URL:
http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/page/about

The app generates URLs according to the "no_script_name" setting in
apps/qubit/config/settings.yml - maybe you could please post your copy
of that file?

The setting is cached in the "prod" environment, so a change requires
clearing the cache: http://qubit-toolkit.org/wiki/index.php?title=Clear_cache

Now, the installer checkHtaccess action should detect whether
"no_script_name" URLs work, enable the setting if so, and disable it
otherwise: http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/index.php/sfInstallPlugin/checkHtaccess

- but I am getting some weird oscillating behavior at that URL. Every
other request, it appears to work, so enables "no_script_name", which
leads to the problem you originally reported. The other requests, it
finds a problem, so disables "no_script_name". The problem it reports
is that Apache Options directives are not allowed in .htaccess files.
However, be this the case, I don't think it should affect
"no_script_name" URLs - if "no_script_name" URLs worked, the installer
would swallow this error.

Basically what concerns me is that the installer should never enable
"no_script_name" unless the following URL prints some magic words:
http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/sfInstallPlugin/callback

It looks to me like that URL never prints the magic words, but
"no_script_name" gets enabled. I couldn't reproduce this on my
workstation. In plugins/sfInstallPlugin/lib/
sfInstall.class.php:checkHtaccess(), it would be helpful to know the
values of $url and $noScriptNameUrl, on the occasions when
checkHtaccess action reports an error and when it reports success.
Also my guess is that in one case it returns on line 319, and in the
other case it returns on line 333 - can you confirm this?

On Mar 6, 10:02 am, Mark Jordan <mjor...@sfu.ca> wrote:
> Sorry guys, I should have added that edocs.lib.sfu.ca is an alias to lib-edocs.lib.sfu.ca.
>
> Mark
>
> ----- "Mark Jordan" <mjor...@sfu.ca> wrote:
>
> > Hi Richard,
>
> > We've made lib-edocs.lib.sfu.ca live as edocs.lib.sfu.ca. However, I
> > just went tohttp://edocs.lib.sfu.ca/collectionsSFU/qubit/-- all was
> > well until I browsed or searched. Not found... I assume qubit
> > registers the site's base URL and since it was installed on lib-edocs,
> > that base URL doesn't match up any more.
>
> > Cc'ing qubit-dev to see if there's a quick fix...
>
> > Mark
>
> > Mark Jordan
> > Head of Library Systems
> > W.A.C. Bennett Library, Simon Fraser University
> > Burnaby, British Columbia, V5A 1S6, Canada
> > Voice: 778.782.5753 / Fax: 778.782.3023
> > mjor...@sfu.ca

Mark Jordan

unread,
Mar 9, 2009, 3:23:56 PM3/9/09
to qubi...@googlegroups.com
Hi Jack,

----- "Jack Bates" <jack....@gmail.com> wrote:

> Oi Mark, this one has me stumped : (

Wow, it's not very often you hear that!

>
> The app generates URLs according to the "no_script_name" setting in
> apps/qubit/config/settings.yml - maybe you could please post your
> copy
> of that file?

attached, as a zip

>
> - but I am getting some weird oscillating behavior at that URL. Every
> other request, it appears to work, so enables "no_script_name", which
> leads to the problem you originally reported. The other requests, it
> finds a problem, so disables "no_script_name". The problem it reports
> is that Apache Options directives are not allowed in .htaccess files.
> However, be this the case, I don't think it should affect
> "no_script_name" URLs - if "no_script_name" URLs worked, the
> installer
> would swallow this error.
>
> Basically what concerns me is that the installer should never enable
> "no_script_name" unless the following URL prints some magic words:
> http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/sfInstallPlugin/callback
>
> It looks to me like that URL never prints the magic words, but
> "no_script_name" gets enabled. I couldn't reproduce this on my
> workstation. In plugins/sfInstallPlugin/lib/
> sfInstall.class.php:checkHtaccess(), it would be helpful to know the
> values of $url and $noScriptNameUrl, on the occasions when
> checkHtaccess action reports an error and when it reports success.
> Also my guess is that in one case it returns on line 319, and in the
> other case it returns on line 333 - can you confirm this?

How would I go about testing this, by simply printing out the variables and hitting the installer URL?

In case it matters, edocs is a simple DNS alias to lib-edocs (IT Services requires that we use 'lib-' on all our servers):

host edocs.lib.sfu.ca
edocs.lib.sfu.ca is an alias for lib-edocs.lib.sfu.ca.
lib-edocs.lib.sfu.ca has address 142.58.211.89

Mark

settings.zip

Jack Bates

unread,
Mar 9, 2009, 3:51:11 PM3/9/09
to Qubit Toolkit Developers
> > - but I am getting some weird oscillating behavior at that URL. Every
> > other request, it appears to work, so enables "no_script_name", which
> > leads to the problem you originally reported. The other requests, it
> > finds a problem, so disables "no_script_name". The problem it reports
> > is that Apache Options directives are not allowed in .htaccess files.
> > However, be this the case, I don't think it should affect
> > "no_script_name" URLs - if "no_script_name" URLs worked, the
> > installer
> > would swallow this error.
>
> > Basically what concerns me is that the installer should never enable
> > "no_script_name" unless the following URL prints some magic words:
> >http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/sfInstallPlugin/call...
>
> > It looks to me like that URL never prints the magic words, but
> > "no_script_name" gets enabled. I couldn't reproduce this on my
> > workstation. In plugins/sfInstallPlugin/lib/
> > sfInstall.class.php:checkHtaccess(), it would be helpful to know the
> > values of $url and $noScriptNameUrl, on the occasions when
> > checkHtaccess action reports an error and when it reports success.
> > Also my guess is that in one case it returns on line 319, and in the
> > other case it returns on line 333 - can you confirm this?
>
> How would I go about testing this, by simply printing out the variables and hitting the installer URL?

Right on, hit this URL: http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/index.php/sfInstallPlugin/checkHtaccess

- and maybe hit it a couple times, to see if the values change?

> In case it matters, edocs is a simple DNS alias to lib-edocs (IT Services requires that we use 'lib-' on all our servers):
>
> host edocs.lib.sfu.ca
> edocs.lib.sfu.ca is an alias for lib-edocs.lib.sfu.ca.
> lib-edocs.lib.sfu.ca has address 142.58.211.89

Maybe this is what confuses the installer, but I don't yet understand
how...

Mark Jordan

unread,
Mar 9, 2009, 4:00:19 PM3/9/09
to qubi...@googlegroups.com, Richard Dancy
Hey Jack,

Richard just called me and it appears that clearing the cache has made things right. I'll let him confirm however. There are a couple of shell access permissions we have to fix for him but these should not be related to access to the web front end.

If clearing the cache didn't solve all, I'll follow up on the debug stuff.

Mark

Mark Jordan
Head of Library Systems
W.A.C. Bennett Library, Simon Fraser University
Burnaby, British Columbia, V5A 1S6, Canada
Voice: 778.782.5753 / Fax: 778.782.3023
mjo...@sfu.ca

----- "Jack Bates" <jack....@gmail.com> wrote:

Mark Jordan

unread,
Mar 9, 2009, 4:39:20 PM3/9/09
to qubi...@googlegroups.com
Jack,

----- "Jack Bates" <jack....@gmail.com> wrote:


> >
> > > It looks to me like that URL never prints the magic words, but
> > > "no_script_name" gets enabled. I couldn't reproduce this on my
> > > workstation. In plugins/sfInstallPlugin/lib/
> > > sfInstall.class.php:checkHtaccess(), it would be helpful to know
> the
> > > values of $url and $noScriptNameUrl, on the occasions when
> > > checkHtaccess action reports an error and when it reports
> success.
> > > Also my guess is that in one case it returns on line 319, and in
> the
> > > other case it returns on line 333 - can you confirm this?
> >
> > How would I go about testing this, by simply printing out the
> variables and hitting the installer URL?
>
> Right on, hit this URL:
> http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/index.php/sfInstallPlugin/checkHtaccess
>

Visit the URL above to see the output. I've added

var_dump('<p />$url is ');
var_dump($url);

and

var_dump('<p />$noScriptNameUrl is ');
var_dump($noScriptNameUrl);


Mark

Mark Jordan

unread,
Mar 16, 2009, 3:36:09 PM3/16/09
to qubi...@googlegroups.com
Hi Jack,

Anything else I need to do on my end for this?

Mark

Mark Jordan
Head of Library Systems
W.A.C. Bennett Library, Simon Fraser University
Burnaby, British Columbia, V5A 1S6, Canada
Voice: 778.782.5753 / Fax: 778.782.3023
mjo...@sfu.ca

Jack Bates

unread,
Mar 17, 2009, 12:12:33 PM3/17/09
to Qubit Toolkit Developers
Thanks to your help debugging, I have reproduced the problem with the
installer here on my workstation, and am working on a fix. I think
your site should work in the meantime, so long as you keep the
"no_script_name" setting in apps/qubit/config/settings.yml set to
"off". The installer will incorrectly twiddle this setting until it is
fixed : (

On Mar 16, 12:36 pm, Mark Jordan <mjor...@sfu.ca> wrote:
> Hi Jack,
>
> Anything else I need to do on my end for this?
>
> Mark
>
> Mark Jordan
> Head of Library Systems
> W.A.C. Bennett Library, Simon Fraser University
> Burnaby, British Columbia, V5A 1S6, Canada
> Voice: 778.782.5753 / Fax: 778.782.3023
> mjor...@sfu.ca
>
> ----- "Mark Jordan" <mjor...@sfu.ca> wrote:
>
> > Jack,
>
> > ----- "Jack Bates" <jack.ba...@gmail.com> wrote:
>
> > > > > It looks to me like that URL never prints the magic words, but
> > > > > "no_script_name" gets enabled. I couldn't reproduce this on my
> > > > > workstation. In plugins/sfInstallPlugin/lib/
> > > > > sfInstall.class.php:checkHtaccess(), it would be helpful to
> > know
> > > the
> > > > > values of $url and $noScriptNameUrl, on the occasions when
> > > > > checkHtaccess action reports an error and when it reports
> > > success.
> > > > > Also my guess is that in one case it returns on line 319, and
> > in
> > > the
> > > > > other case it returns on line 333 - can you confirm this?
>
> > > > How would I go about testing this, by simply printing out the
> > > variables and hitting the installer URL?
>
> > > Right on, hit this URL:
>
> >http://edocs.lib.sfu.ca/collectionsSFU/qubit/web/index.php/sfInstallP...
Reply all
Reply to author
Forward
0 new messages