Closed (fixed)
Project:
Salesforce Suite
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 21:17 UTC
Updated:
16 Jul 2011 at 17:11 UTC
Problem:
When enabling sf_entity and possibly in other cases, the module outputs the following error message:
Notice: Undefined index: uri callback in sf_entity_menu() (line 26 of /path/to/drupal/sites/example.com/modules/salesforce/sf_entity/sf_entity.module).
Environment:
LAMP setup php-5.2.6.1
Drupal 7.0 - fresh install using aegir
Latest version of salesforce-api module (as of jan 27, 2011)
Impact:
Displays error message that is possibly confusing and or annoying to end user at best. At worst may reveal security sensetive information to anonymous users.
Proposed Solution:
Check if uri_callback is empty before using it. See patch.
| Comment | File | Size | Author |
|---|---|---|---|
| sf_entity.module.patch | 661 bytes | cooperq |
Comments
Comment #1
EvanDonovan commentedStatus should be "needs review". "Patch (to be ported)" means the patch needs to be backported or forward-ported to a different branch.
Comment #2
brianV commentedEvan:
I wonder if the D7 bug reports should be backburnered as the current D7 branch will be deprecated, and a new port done based on the current 6.x-2.x branch, taking portions of the D7 entity code only...
Comment #3
EvanDonovan commented@brianV: Oh, is that the plan now? I was not aware...
I think that sounds reasonable. Should this be set to "postponed" therefore? We should probably also discourage people on the project page from using the 7.x branch as it currently stands, telling them to wait for the new port from 6.x.
Comment #4
brianV commentedEvanDonovan:
That is my impression, as per #990660: D7 port.
Comment #5
EvanDonovan commentedFor consideration in new version of sf_entity.
Comment #6
EvanDonovan commentedShould be fixed now. Please let me know if it is not.