You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2014/03/19 06:03:01 UTC
[Apache Bloodhound] #792: Invalid search result after moving ticket
to another product
#792: Invalid search result after moving ticket to another product
---------------------+--------------------
Reporter: olemis | Owner:
Type: defect | Status: new
Priority: major | Version: 0.8.0dev
Resolution: |
---------------------+--------------------
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/792>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #792: Invalid search result after moving
ticket to another product
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#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
-----------------------+------------------------------------------
Comment (by rjollos):
I've tried reproducing the behavior a few times with SQLite. The result I
see is that search returns the ticket in `P1` but not `P2`. Following the
link to the ticket results in //Ticket N does not exist.// I'll need to do
more testing to see if the result is different in PostgreSQL.
Is the ability to move tickets through the Batch Modify form a feature
that was intentionally implemented? We don't allow the product to be
changed from the ticket form, and I wonder if we have really implemented
support to move tickets, or if instead it just sort of works by chance.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/792#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #792: Invalid search result after moving
ticket to another product
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#792: Invalid search result after moving ticket to another product
-----------------------+------------------------------------------
Reporter: olemis | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone: next 0.x
Component: search | Version: 0.8.0dev
Resolution: | Keywords: ticket batch modify, product
-----------------------+------------------------------------------
Comment (by olemis):
Replying to [comment:3 rjollos]:
> I've tried reproducing the behavior a few times with SQLite. The result
I see is that search returns the ticket in `P1` but not `P2`. Following
the link to the ticket results in //Ticket N does not exist.// I'll need
to do more testing to see if the result is different in PostgreSQL.
>
ok , thanks for trying thid out .
> Is the ability to move tickets through the Batch Modify form a feature
that was intentionally implemented?
Indeed it was intentional and mentioned as a last recourse approach in
other conversations [citation needed].
> We don't allow the product to be changed from the ticket form,
No ... even if we should ...
> and I wonder if we have really implemented support to move tickets,
If we haven't then we should do it rather than removing this feature from
batch modify form .
> or if instead it just sort of works by chance.
In our deployments moving tickets onto another product just works . The
issue I've detected is related to free text search only . Everything else
just works . I guess this is due to (e.g. an exception thrown while
executing) the underlying whoosh indexing strategy ? I could not find
anything in the logs though .
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/792#comment:5>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #792: Invalid search result after moving
ticket to another product
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#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
Re: [Apache Bloodhound] #792: Invalid search result after moving
ticket to another product
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#792: Invalid search result after moving ticket to another product
-----------------------+------------------------------------------
Reporter: olemis | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone: next 0.x
Component: search | Version: 0.8.0dev
Resolution: | Keywords: ticket batch modify, product
-----------------------+------------------------------------------
Changes (by rjollos):
* milestone: => next 0.x
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/792#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #792: Invalid search result after moving
ticket to another product
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#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
-----------------------+------------------------------------------
Description changed by olemis:
Old 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"
> }}}
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:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #792: Invalid search result after moving
ticket to another product
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#792: Invalid search result after moving ticket to another product
-----------------------+------------------------------------------
Reporter: olemis | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone: next 0.x
Component: search | Version: 0.8.0dev
Resolution: | Keywords: ticket batch modify, product
-----------------------+------------------------------------------
Comment (by olemis):
Replying to [comment:5 olemis]:
> Replying to [comment:3 rjollos]:
[...]
> > and I wonder if we have really implemented support to move tickets,
>
> If we haven't then we should do it rather than removing this feature
from batch modify form .
>
IMHO , support has been added but not all the implications of this action
have been identified , implemented , polished and tested . So it's correct
to think that , at some extent , «it just sort of works by chance» , but
IMO the approach looking forward should be to improve what we have rather
than remove this feature .
[...]
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/792#comment:6>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker