Closed (fixed)
Project:
Classified Ads
Version:
6.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2011 at 09:44 UTC
Updated:
11 Dec 2011 at 18:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
fgmMakes sense. I'll check in more depth but you are probably right.
Can you provide a patch including a simpletest catching the error in the current situation ?
Comment #2
murfi commentedi'm not sure what you are asking me; i hope this helps
how to repeat
1. set 'full html' input format for admin user and 'filtered html' as default input format
2. create an ad as admin
3. anonymous user sees 'n/a' as the body of the ad
i attached a patch with the change i proposed; i didn't have the time to check if there are some unexpected side effects
Comment #3
fgmGood start.
Now the next step is to convert the number steps you described to a test function to add to
tests/classified_basic.testso that it catches this error before the fix, and no longer gets it when the fix is applied.Comment #4
jasonmce commentedJust giving you 3rd party confirmation in case you were curious.
Comment #5
underq commentedI have create a patch and simpletest which fails before the patch and passes with the patch applied
Comment #6
fgmThis is not needed: format can be saved upon node creation. Place it in $settings before nodeCreate().
Incorrect API use for assertNoText(): missing message.
Comment #7
fgmRerolled to take into account previous comments.
Also explicitly set node creator to "creator user", in order to avoid all-powerful user 1 bypassing checks and added a logout step
Comment #8
fgmCommitted to 6.x-3.x, thanks murfi, underq.
@JasonMcE: please do not modify issue titles that way: only change an issue title to make it accurate for the whole thread, not just the latest comment.