[MGNLSTK-554] freemarker error in search results stk template Created: 06/Jan/10 Updated: 23/Jan/13 Resolved: 11/Jan/10 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | templates |
| Affects Version/s: | 1.2.1 |
| Fix Version/s: | 1.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Matthew Arriaga | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | freemarker, search_results, stk | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Has occurred in Windows development environment and Redhat production instances using magnolia 4.0, 4.1, 4.2.2 |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Date of First Response: | |||||||||||||
| Description |
This is the error I am getting... get(result) failed on instance of info.magnolia.module.templatingkit.search.SearchResultModel |
| Comments |
| Comment by Magnolia International [ 06/Jan/10 ] |
|
Hi Matthew, Thanks for the report! Any chance you could attach the complete stacktrace so we could see where this is coming from, if at all ? |
| Comment by Magnolia International [ 06/Jan/10 ] |
|
Additionally, if you could provide some sample content that generates the error, it could hopefully help us write some tests and make this piece of code stronger. (at first glance, all I see involving regexes there, is info.magnolia.module.templatingkit.search.SearchResultItem#stripHtmlTags) |
| Comment by Matthew Arriaga [ 06/Jan/10 ] |
|
The full stack trace is in the file, here are the first 150 lines. get(result) failed on instance of info.magnolia.module.templatingkit.search.SearchResultModel |
| Comment by Matthew Arriaga [ 06/Jan/10 ] |
|
I've included an export containing a portion of our content that throws the exception. After I import this xml file and search for the word issues, I get the error, if I add quotes it goes away, if I search for the page title returned in the search results I do not get the error. I reproduced the error using a clean install of 4.2.2 enterprise bundle on windows xp pro 32-bit. |
| Comment by Magnolia International [ 06/Jan/10 ] |
|
I knew this was ringing a bell, and seems similar to |
| Comment by Magnolia International [ 07/Jan/10 ] |
|
fixed on the 1.1, 1.2 branches and the trunk for 1.3. Matthew, you can grab a patched jar for STK 1.2 here: http://ci.magnolia-cms.com/job/standard-templating-kit_branch-1.2/info.magnolia$magnolia-module-standard-templating-kit/ - can you give it a shot ? |
| Comment by Matthew Arriaga [ 09/Jan/10 ] |
|
IT WORKED! I updated our production servers to 4.2.3 and patched using the snapshot and I am no longer seeing the error. Your timely response on this issue was absolutely outstanding. Thank-you Grégory, -Matt |
| Comment by Magnolia International [ 11/Jan/10 ] |
|
Good to hear! We'll hopefully release STK 1.2.2 shortly, including this bugfix. |
| Comment by Magnolia International [ 03/Feb/10 ] |
|
Matthew, fyi, STK 1.2.2, and even 1.2.3, have been released. Cheers! |