#143 — setEnabled fails with inappropriate type comparison
| State | Resolved |
|---|---|
| Version: | 1.2 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Kai Lautaportti |
| Submitted on | Sep 10, 2008 |
| Responsible | Ricardo Newbery |
| Target release: | 1.2.1 |
Last modified on
Feb 28, 2009
by
Ricardo Newbery
On Plone 2.5.5 (AT 1.4.6-final) the CacheTool.setEnabled() method results in the "Refusing to change CacheSetup status.." message because the "value" parameter passed in is a string (e.g. '1') representing a boolean value which gets compared to an actual boolean value.
In case CacheFu should allow enabling, the comparison '1' == True fails and the error message results.
In case CacheFu should allow enabling, the comparison '1' == True fails and the error message results.
- Steps to reproduce:
- Create a plain Plone 2.5 site
Quickinstall CacheSetup
Go to the "Cache Configuration tool" configlet
Click "Save"
Added byRicardo NewberyonFeb 28, 2009 05:43 AM
Fixed in svn... http://dev.plone.org/collective/changeset/81449Issue state:
Unconfirmed
→
Resolved
Responsible manager:
(UNASSIGNED)
→
newbery
Target release:
None
→
1.2.1
No responses can be added.
If you can, please log in before submitting a reaction.