#792: Invalid search result after moving ticket to another product
-----------------------+------------------------------------------
Reporter: olemis | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone:
Component: search | Version: 0.8.0dev
Resolution: | Keywords: ticket batch modify, product
-----------------------+------------------------------------------
Changes (by olemis):
* keywords: => ticket batch modify, product
* priority: major => critical
* component: => search
* owner: => nobody
Old description:
New description:
Briefly , the situation is as follows :
- Ticket T1 created in product P1
* e.g. in blood-hound.net T1=285 P1=bhnet
- Ticket moved to product P2 using batch modify form
e.g. in blood-hound.net P2=rpc
- Search for something related to this ticket
* e.g. `timestamp` , see http://rpc.blood-
hound.net/bhsearch?q=timestamp
- URLs for both products are included in results list ,
one will work but the other displays a (plain text) error message
like shown below
* e.g. http://rpc.blood-hound.net/ticket/285 vs http://bhnet.blood-
hound.net/ticket/285
{{{#!pycon
Traceback (most recent call last):
File "/path/to/bloodhound/trac/trac/web/api.py", line 514, in send_error
data, 'text/html')
File "/path/to/bloodhound/trac/trac/web/chrome.py", line 1019, in
render_template
encoding='utf-8')
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 184, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/output.py", line 58, in encode
for chunk in iterator:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/output.py", line 350, in __call__
for kind, data, pos in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/output.py", line 829, in __call__
for kind, data, pos in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/output.py", line 669, in __call__
for kind, data, pos in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/output.py", line 774, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/output.py", line 594, in __call__
for ev in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 289, in _ensure
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 289, in _ensure
for event in stream:
File "/path/to/bloodhound/trac/trac/web/chrome.py", line 1156, in
_strip_accesskeys
for kind, data, pos in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 289, in _ensure
for event in stream:
File "/path/to/bloodhound/trac/trac/web/chrome.py", line 1145, in
_generate
for kind, data, pos in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 289, in _ensure
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 289, in _ensure
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 706, in _unmark
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 974, in __call__
for mark, (kind, data, pos) in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 974, in __call__
for mark, (kind, data, pos) in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 1195, in __call__
for mark, (kind, data, pos) in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 702, in _mark
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/core.py", line 289, in _ensure
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 706, in _unmark
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 974, in __call__
for mark, (kind, data, pos) in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 974, in __call__
for mark, (kind, data, pos) in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 1195, in __call__
for mark, (kind, data, pos) in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/filters/transform.py", line 702, in _mark
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/base.py", line 618, in _include
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/markup.py", line 378, in _match
ctxt, start=idx + 1, **vars):
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/markup.py", line 378, in _match
ctxt, start=idx + 1, **vars):
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/markup.py", line 362, in _match
content = list(content)
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/base.py", line 618, in _include
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/markup.py", line 315, in _strip
event = next()
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/base.py", line 578, in _flatten
result = _eval_expr(data, ctxt, vars)
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/eval.py", line 177, in evaluate
return eval(self.code, _globals, {'__data__': data})
File
"/path/to/bloodhound/bloodhound_theme/bhtheme/templates/bloodhound_theme.html",
line 394, in <Expression u'chrome.labels.footer_left_prefix'>
${chrome.labels.footer_left_prefix}
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/eval.py", line 317, in lookup_attr
val = getattr(obj, key)
File "/path/to/bloodhound/trac/Genshi-0.7-py2.7-linux-
x86_64.egg/genshi/template/eval.py", line 278, in _die
raise UndefinedError(self._name, self._owner)
UndefinedError: {'late_script_data': {}, 'scriptset':
set(['common/js/messages/en_US.js', 'common/js/trac.js',
'common/js/babel.js', 'common/js/jquery.js', 'common/js/search.js']),
'links': {'search': [{'href': '/search', 'type': None, 'class': None,
'title': None}], 'help': [{'href': '/wiki/TracGuide', 'type': None,
'class': None, 'title': None}], 'start': [{'href': '/wiki', 'type': None,
'class': None, 'title': None}], 'stylesheet': [{'media': None, 'href':
'/chrome/theme/bloodhound.css', 'type': 'text/css', 'class': None,
'title': None}], 'shortcut icon': [{'href': '/chrome/common/trac.ico',
'type': 'image/x-icon', 'class': None, 'title': None}], 'icon': [{'href':
'/chrome/common/trac.ico', 'type': 'image/x-icon', 'class': None, 'title':
None}]}, 'warnings': [], 'content_type': 'text/html', 'scripts':
[{'prefix': None, 'href': '/chrome/common/js/jquery.js', 'type':
'text/javascript', 'charset': 'utf-8', 'suffix': None}, {'prefix': None,
'href': '/chrome/common/js/babel.js', 'type': 'text/javascript',
'charset': 'utf-8', 'suffix': None}, {'prefix': None, 'href':
'/chrome/common/js/messages/en_US.js', 'type': 'text/javascript',
'charset': 'utf-8', 'suffix': None}, {'prefix': None, 'href':
'/chrome/common/js/trac.js', 'type': 'text/javascript', 'charset':
'utf-8', 'suffix': None}, {'prefix': None, 'href':
'/chrome/common/js/search.js', 'type': 'text/javascript', 'charset':
'utf-8', 'suffix': None}], 'logo': {'src_abs': u'http://blood-
hound.net/chrome/site/bhnet.png', 'src': u'http://blood-
hound.net/chrome/site/bhnet.png', 'height': None, 'width': None, 'link':
u'', 'alt': u'(please configure the [header_logo] section in trac.ini)'},
'late_scripts': [], 'icon': {'mimetype': 'image/x-icon', 'src':
'/chrome/common/trac.ico', 'abs_src': 'http://bhnet.blood-
hound.net/chrome/common/trac.ico'}, 'theme_info': {'description':
'Advanced Bloodhound theme\n ', 'screenshot': 'htdocs/screenshot.png',
'module': 'bhlabs.theme', 'name': 'BloodhoundLabs', 'template_overrides':
{}, 'template':
'/path/to/bloodhound/bloodhound_theme/bhtheme/templates/bloodhound_theme.html',
'provider': <bhlabs.theme.BloodhoundLabsTheme object at 0x7f140e9b4f50>,
'disable_trac_css': True, 'css': 'bloodhound.css', 'htdocs':
'/path/to/bloodhound/bloodhound_theme/bhtheme/htdocs'}, 'late_links': {},
'footer': <Markup u'Get involved with <a
href="https://issues.apache.org/bloodhound/">Apache Bloodhound</a>'>,
'theme': 'bloodhound_theme.html', 'metas': [], 'nav': {'metanav':
[{'active': False, 'name': 'login', 'label': <Element "a">}, {'active':
False, 'name': 'prefs', 'label': <Element "a">}]}, 'htdocs_location':
'/chrome/common/', 'linkset': set(['icon:/chrome/common/trac.ico',
'search:/search', 'shortcut icon:/chrome/common/trac.ico', 'start:/wiki',
'help:/wiki/TracGuide', 'stylesheet:/chrome/theme/bloodhound.css',
'stylesheet:/chrome/common/css/trac.css']), 'notices': [], 'ctxtnav': [],
'script_data': {}} has no member named "labels"
}}}
--
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/792#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker