| Summary: | [upstream] comment search broken with bugzilla 3.4 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Benjamin Muskalla <b.muskalla> | ||||||||||||
| Component: | Mylyn | Assignee: | Robert Elves <robert.elves> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | major | ||||||||||||||
| Priority: | P1 | CC: | eclipse, steffen.pingel | ||||||||||||
| Version: | 3.2 | ||||||||||||||
| Target Milestone: | 3.2.2 | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | All | ||||||||||||||
| URL: | https://bugzilla.mozilla.org/show_bug.cgi?id=517011 | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Bug Depends on: | |||||||||||||||
| Bug Blocks: | 261868 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Benjamin Muskalla
That sounds like a serious regression. Frank, can you take a look what could be causing this? Yes, this is a problem. Investigating. Created attachment 147012 [details]
work around for bugzilla bug
In 3.4.1 Bugzilla's query page now uses a different identifier for the comment. They still use the correct standard one in the xml. This patch will construct the correct url given the repository version and any existing old format queries will be adapted upon execution to the new format if the repo is >= 3.4.1
Frank or Steffen, if you could give this a sanity check that would be great. What would happen if we always sent both parameters in the query url? Just in case Bugzilla decides to "fix" this in the future. Might just work. I'll do some testing. Created attachment 147025 [details]
updated patch
Yes. Works fine if both long_desc and longdesc are used in the query for 3.0 and 3.4.1
Created attachment 147028 [details]
backported patch
I have applied the patch to the 3.2.x branch. Patch committed to 3.2.x branch and head. Thanks for reporting this Benjamin! Created attachment 147039 [details] other way for a patch (In reply to comment #7) > Created an attachment (id=147025) > updated patch > > Yes. Works fine if both long_desc and longdesc are used in the query for 3.0 > and 3.4.1 Rob, Steffen I implement an other way to fix this. Now we only create long_decs for Bugzilla < 3.4 or longdesc for Bugzilla >= 3.4. This way we can find that code when we remove support for 3.2. I think we should apply this in HEAD. Thoughts? Created attachment 147040 [details]
mylyn/context/zip
Thanks guys for fixing this that fast - I'm always mesmerized by the Mylyn team ;-) Thanks Frank. That approach is similar to Rob's original patch and I can see how that is more efficient since the search string is only sent ince. The reason we changed it to sending longdesc and long_desc is to handle these cases: * If the repository configuration is stale the version may not be detected correctly and a search would return wrong results. * If Bugzilla decides to "fix" this in the future and reverts back to long_desc older Mylyn clients would be broken. I'm in favor of keeping the current implementation. I'll reopen this bug for discussion. Rob, has a bug against Bugzilla been filed to clarify why the field was renamed? (In reply to comment #14) > Thanks Frank. That approach is similar to Rob's original patch and I can see > how that is more efficient since the search string is only sent ince. The > reason we changed it to sending longdesc and long_desc is to handle these > cases: > > * If the repository configuration is stale the version may not be detected > correctly and a search would return wrong results. > * If Bugzilla decides to "fix" this in the future and reverts back to long_desc > older Mylyn clients would be broken. > > I'm in favor of keeping the current implementation. I'll reopen this bug for > discussion. Rob, has a bug against Bugzilla been filed to clarify why the field > was renamed? Thanks for investigating this Frank but I think we should stick with the current patch. I've submitted a bug against bugzilla.org for what is essentially an api breakage: https://bugzilla.mozilla.org/show_bug.cgi?id=517011 Marking resolved then since a work-around is in place on the client side. Just stumbled across the code again and saw that you forgot to add the NLS markers for the strings :) (In reply to comment #17) > Just stumbled across the code again and saw that you forgot to add the NLS > markers for the strings :) I fix the //$NON-NSL- problems in HEAD. Good catch. Thanks! |