Closed (won't fix)
Project:
Lightbox2
Version:
5.x-2.8
Component:
Javascript
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2008 at 20:49 UTC
Updated:
22 Jul 2009 at 05:58 UTC
Hi,
I'm using the lightbox2 module with the subdomain module.
My problem is that when I'm trying to use the /user/login/lightbox2 is not working for the subdomains.
The lightbox is opening as it supposed to but the login form never appears.
Using the firebug I'm getting back the message -> "Access to restricted URI denied, code: 1012"
does anybody have a clue how to fix this?
King Regards
Comments
Comment #1
stella commentedCan you provide a link to your site where this happens? My contact form is enabled if you wish to do so privately.
What subdomains are you using? What is the /user/login/lightbox2 full url including subdomain?
Cheers,
Stella
Comment #2
stella commentedComment #3
stella commentedTry the newer release: 5.x-2.9.
Cheers,
Stella
Comment #4
stella commentedMarking as "won't fix" since no more information forthcoming in over a month. Please feel free to re-open the issue if you can provide more info.
Cheers,
Stella
Comment #5
elfsternberg commentedStella, using the uncompressed version of jQuery version 1.3.2, I was able to determine the following information. I've seen this bug several times and discovered that when the developer is going through a reverse proxy (nginx, for example) to reach Apache, Drupal is relying on Apache to deliver a canonical URL and the Apache install is returning the wrong URL for accessing the installation. Drupal should ignore Apache's advice and work with the original URL supplied by the browser.
Drupal appears to be attempting to access the URL "http://127.0.0.1:81/drupal/install.php?locale=en&profile=default&id=1&op=do", where "drupal" is the directory where Drupal is installed under htdocs in my apache tree.
The box on which this install was attempted is identified by its hostname, "chi", by the synonym "localhost," and of course by "127.0.0.1", which is the traditional IP for localhost. The address is on port 80, but is reverse-proxied to port 81, where the base Apache install resides internally.
Drupal should not become confused if behind a reverse proxy during installation. This kind of fragility is deadly to the popularity of any product.
Comment #6
stella commented@elfsternberg: can you explain how this relates to the lightbox2 module? The lightbox2 module does nothing with install.php.
Comment #7
elfsternberg commentedStella: What's happening is that jQuery is attempting to access a URI that's sandboxed. Lightbox is doing something with the canonincal URL that the server is delivering to the browser, not the original URL that was supplied. The URLs are different, and Firefox is throwing a security exception on the grounds that you're trying to access one domain from another one, i.e. it thinks you're trying a cross-site exploit. This is the same bug as the "hangs on install" bug.