To reproduce:
Create a node with a private image field.
Start a server with drush rs --server=builtin (or with php -S)
View the node.
The image gives a 404.
Restart drush with CGI.
The image works fine (it has the same path as before).
Version 7.19 has the same behavior.
PHP version: 5.4.4

Comments

dudycz’s picture

Are you sure that this is not permission issue? What is written to the system log?

Paul B’s picture

The site was installed and run with drush all under the same user, so I don't think it can be a permission issue.
The watchdog log says nothing, the webserver says
[Thu Mar 7 08:53:48 2013] 127.0.0.1:36872 [404]: /system/files/logo_rb.png - No such file or directory

shenzhuxi’s picture

URL like DRUPAL/?q=system/files/* is alright, while DRUPAL/system/files/* is not working with clean URLs enabled.
To use Drupal with PHP 5.4 builtin webserver, we may need to write more in htrouter.php https://drupal.org/node/1543858.

Version: 7.20 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.