Closed
Bug 471484
Opened 16 years ago
Closed 16 years ago
index.php path exploding
Categories
(Cloud Services :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: matt-mozilla, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
Build Identifier: Server 0.3, client 0.2.95
using the setup instruction as described at https://wiki.mozilla.org/Labs/Weave/0.3/Setup, and using the client, the user is unable to login.
modifying the source index.php around line 70 to be:
syslog(LOG_INFO, "$path");
list($string, $username, $collection, $id) = explode('/', $path.'//');
syslog(LOG_INFO, "string:$string username:$username collection:$collection id:$id");
yields the following in syslog:
Dec 29 21:04:02 tornado httpd: user/test
Dec 29 21:04:02 tornado httpd: string:user username:test collection: id:
without adding the $string in to the explode, the $username variable was always set to user, thus preventing the test "if ($auth_user != $username)" on or about line 112 from working correctly.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
one the extra "$string" was inserted into the line, the user was able to sign in correctly.
extract from httpd log file:
192.168.0.1 - test [29/Dec/2008:21:04:02 -0600] "GET /weave/0.3/user/test HTTP/1.1" 200 3
centos 5.2
php-5.2.6-4
apache 2.2.3
Reporter | ||
Comment 1•16 years ago
|
||
the PHP code is correct - the problem is a bad Alias directive in apache, based upon inaccurate information on https://wiki.mozilla.org/Labs/Weave/0.3/Setup
Alias /weave/0.3 <full path to weave directory>/index.php
should be
Alias /weave/0.3/user <full path to weave directory>/index.php
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Updated•16 years ago
|
Component: Weave → General
Product: Mozilla Labs → Weave
Target Milestone: -- → ---
Updated•16 years ago
|
QA Contact: weave → general
You need to log in
before you can comment on or make changes to this bug.
Description
•