Bug #68291 [NEW]: 404 on urls with '+'
From: euperia at gmail dot com
Operating system: OSX
PHP version: 5.5.18
Package: Built-in web server
Bug Type: Bug
Bug description:404 on urls with '+'
Description:
------------
Using bower to manage JS deps and using the following javascript file
throws a 404.
bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js
The file definately exists and renaming it without the '+' works. As
this is a managed file renaming it isn't an option.
Test script:
---------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample page</title>
</head>
<body>
<script
src="bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js"></script>
</body>
</html>
Expected result:
----------------
PHP 5.5.15 Development Server started at Thu Oct 23 15:13:52 2014
Listening on http://0.0.0.0:3000
Document root is xxxxxxxxxxxxxxxxxxxxx
Press Ctrl-C to quit.
[Thu Oct 23 15:13:55 2014] 127.0.0.1:55959 [200]: /
[Thu Oct 23 15:13:55 2014] 127.0.0.1:55960 [200]:
/bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js
Actual result:
--------------
PHP 5.5.15 Development Server started at Thu Oct 23 15:13:52 2014
Listening on http://0.0.0.0:3000
Document root is xxxxxxxxxxxxxxxxxxxxx
Press Ctrl-C to quit.
[Thu Oct 23 15:13:55 2014] 127.0.0.1:55959 [200]: /
[Thu Oct 23 15:13:55 2014] 127.0.0.1:55960 [404]:
/bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js
- No such file or directory
--
Edit bug report at https://bugs.php.net/bug.php?id=68291&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68291&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68291&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68291&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68291&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68291&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68291&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68291&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68291&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68291&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68291&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68291&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68291&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68291&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68291&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68291&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68291&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68291&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68291&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68291&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68291&r=mysqlcfg
Thread (4 messages)
- euperia at gmail dot com