Project

General

Profile

Bug(バグ) #1183

メール投稿のユーザ名が nobody の場合 symfony cc でcache/nobody ディレクトリが削除できない

Added by Kiwa Sakai about 9 years ago. Updated about 9 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Target version:
Start date:
2010-06-18
Due date:
% Done:

100%

3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
Unknown (未調査)

Description

メール投稿時のユーザ名が nobody の場合、 symfony cc で以下のWarning が表示される

$ ./symfony cc
PHP Warning:  opendir(/OPENPNE_DIR/cache/nobody): failed to open dir: Permission denied in /OPENPNE_DIR/lib/vendor/symfony/lib/util/sfFinder.class.php on line 418
PHP Warning:  readdir(): supplied argument is not a valid Directory resource in /OPENPNE_DIR/lib/vendor/symfony/lib/util/sfFinder.class.php on line 419
PHP Warning:  closedir(): supplied argument is not a valid Directory resource in /OPENPNE_DIR/lib/vendor/symfony/lib/util/sfFinder.class.php on line 484


Related issues

Related to OpenPNE 3 - Backport(バックポート) #1042: Can't execute openpne:execute-mail-action bacause of permisson of cache/cli directory Fixed(完了) 2010-05-11
Related to OpenPNE 3 - Backport(バックポート) #1232: メール投稿のユーザ名が nobody の場合 symfony cc でcache/nobody ディレクトリが削除できない Invalid(無効) 2010-06-18
Related to OpenPNE 3 - Backport(バックポート) #1231: メール投稿のユーザ名が nobody の場合 symfony cc でcache/nobody ディレクトリが削除できない Fixed(完了) 2010-06-18
Related to OpenPNE 3 - Backport(バックポート) #1415: #1183 の対応では cache/nobody のキャッシュ削除ができない Fixed(完了) 2010-07-22

Associated revisions

Revision 36faf474 (diff)
Added by Kousuke Ebihara about 9 years ago

changed to remove cache directory that is created by "nobody" in end of per request (refs #1183)

Revision 58cdc253 (diff)
Added by Kousuke Ebihara about 9 years ago

removed using opToolkit::isOnWindows() (fixes #1183)

History

#1 Updated by Yuki Yamashita about 9 years ago

  • Target version set to OpenPNE 3.6beta1

#2 Updated by Kousuke Ebihara about 9 years ago

  • Status changed from New(新規) to Accepted(着手)
  • Assignee set to Kousuke Ebihara

#3 Updated by Kousuke Ebihara about 9 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

#4 Updated by Shogo Kawahara about 9 years ago

  • Status changed from Pending Review(レビュー待ち) to Rejected(差し戻し)

36faf474 以降(と推測)で
全てのWebアプリで、出力が何もされませんでした。エラーログには以下のようなメッセージが残っています。

pc_frontend_dev 環境で行ったものですが、他のアプリケーション・環境でも同様な現状が見受けられています。

[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP Fatal error:  Class 'opToolkit' not found in /home/kawahara/dev/OpenPNE3/lib/config/opApplicationConfiguration.class.php on line 507
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP Stack trace:
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   1. {main}() /home/kawahara/dev/OpenPNE3/web/pc_frontend_dev.php:0
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   2. sfProjectConfiguration::getApplicationConfiguration() /home/kawahara/dev/OpenPNE3/web/pc_frontend_dev.php:13
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   3. sfApplicationConfiguration->__construct() /home/kawahara/dev/OpenPNE3/lib/vendor/symfony/lib/config/sfProjectConfiguration.class.php:614
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   4. sfProjectConfiguration->__construct() /home/kawahara/dev/OpenPNE3/lib/vendor/symfony/lib/config/sfApplicationConfiguration.class.php:47
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   5. sfApplicationConfiguration->setRootDir() /home/kawahara/dev/OpenPNE3/lib/vendor/symfony/lib/config/sfProjectConfiguration.class.php:55
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   6. sfProjectConfiguration->setRootDir() /home/kawahara/dev/OpenPNE3/lib/vendor/symfony/lib/config/sfApplicationConfiguration.class.php:285
[Wed Jul 14 14:48:54 2010] [error] [client 172.16.221.1] PHP   7. opApplicationConfiguration->setCacheDir() /home/kawahara/dev/OpenPNE3/lib/vendor/symfony/lib/config/sfProjectConfiguration.class.php:136

#5 Updated by Kousuke Ebihara about 9 years ago

  • Status changed from Rejected(差し戻し) to Pending Review(レビュー待ち)

更新履歴 58cdc253172c37ee6bc4386d9c932d2ec15e1b43 で適用されました。

#6 Updated by Shogo Kawahara about 9 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
  • % Done changed from 50 to 70

#7 Updated by Kousuke Ebihara about 9 years ago

  • Status changed from Pending Testing(テスト待ち) to Fixed(完了)
  • % Done changed from 70 to 100

Also available in: Atom PDF