Project

General

Profile

Actions

Bug(バグ) #3511

open

opAdaptableUser 内で定義されていないメソッド getMemberId() が用いられている

Added by Yuya Watanabe about 11 years ago. Updated almost 5 years ago.

Status:
New(新規)
Priority:
Low(低め)
Assignee:
-
Target version:
Start date:
2013-12-04
Due date:
% Done:

0%

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

Description

概要

opAdaptableUser 内で定義されていないメソッド getMemberId() が用いられている

具体的には下記 31 行目に該当する.

lib/user/opAdaptableUser.class.php
 28   public function initialize(sfEventDispatcher $dispatcher, sfStorage $storage, $options = array())
 29   {
 30     parent::initialize($dispatcher, $storage, $options);
 31     if ($this->getMemberId() && $this->isTimedOut())
 32     {
 33       $this->getAttributeHolder()->removeNamespace('opSecurityUser');
 34     }

この opAdaptableUser の継承関係としては以下の形になるがどのクラスにも getMemberId() が定義されていない.

opAdaptableUser > opBaseSecurityUser > sfBasicSecurityUser > sfUser

sfUser では __call() が定義されているが user.method_not_found イベントに connect されているものは sfImageHandler のみであり $event->getReturnValue() が返ってくることがないように見える.このあたりが正しい認識か不明なため,問題とならないのであればクローズしてもらって構いません.

$ git grep user.method_not_found
lib/plugins/sfImageHandlerPlugin/config/config.php:$this->dispatcher->connect('user.method_not_found', array('sfImageHandlerUser', 'listenToMethodNotFound'));
lib/vendor/symfony/lib/user/sfUser.class.php:    $event = $this->dispatcher->notifyUntil(new sfEvent($this, 'user.method_not_found', array('method' => $method, 'arguments' => $arguments)));

Actions #1

Updated by Yuya Watanabe about 11 years ago

  • Description updated (diff)
Actions #2

Updated by Chiharu Nakajima about 10 years ago

  • Priority changed from Normal(通常) to Low(低め)
Actions #3

Updated by Chiharu Nakajima about 10 years ago

このチケットの内容は下記の項目に該当する不具合であるため、一旦優先度を下げます。
・未対応でもユーザーに影響が少ない不具合(回避可能な不具合である等)

Actions #4

Updated by kaoru n almost 5 years ago

  • Target version set to OpenPNE 3.10.x
Actions

Also available in: Atom PDF