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.

CommentFileSizeAuthor
sf_entity.module.patch661 bytescooperq

Comments

EvanDonovan’s picture

Status: Patch (to be ported) » Needs review

Status should be "needs review". "Patch (to be ported)" means the patch needs to be backported or forward-ported to a different branch.

brianV’s picture

Evan:

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...

EvanDonovan’s picture

@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.

brianV’s picture

EvanDonovan:

That is my impression, as per #990660: D7 port.

EvanDonovan’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

For consideration in new version of sf_entity.

EvanDonovan’s picture

Status: Needs review » Fixed

Should be fixed now. Please let me know if it is not.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.