Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jan 2011 at 11:51 UTC
Updated:
29 Jul 2014 at 19:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yched commentedAttached patch detects the error earlier on.
Comment #2
bojanz commented#1: efq_invalid_field-1038030-1.patch queued for re-testing.
Comment #3
bojanz commentedPatch still applies (although with -p0), tests still pass, approach makes sense.
I was actually about to write this patch myself (wrote EntityFieldQuery support for Per-Bundle-Storage and was thinking how unfriendly the unknown field name business is), and stumbled into the issue by accident.
Comment #4
yched commentedThks bojanz. Bumping to 8.x first.
Comment #5
catchLooks good to me too.
Comment #6
jackbravo commentedThis doesn't seem to add any new functionality, and instead fix something that's very confusing in Drupal 7. Is it too dangerous to port this to D7?
Comment #7
bojanz commented@jackbravo
It will land in 7.x after it lands in 8.x
Standard procedure.
Comment #8
yched commentedMissing the appropriate tag, though
Comment #9
sunDefinitely a step forward. As a follow-up issue for D8, we should come up with a filtered/optimized backtrace debug output for these kind of exceptions, since although this patch adds the info about what field name is unknown, you still have no effin' clue from where in your code base this field was tried to be queried in the first place.
Comment #10
yched commented@sun re: lack of backtrace info :
true - on that note, see #1067750: Let Field API fail in a tale-telling way on invalid $entity, which desperately needs a bump :-)
Comment #11
webchickHm. This is going to break string freeze in D7, but I think the consequence is worth it.
Comment #12
webchick#1: efq_invalid_field-1038030-1.patch queued for re-testing.
Comment #14
webchickSorry, I see what happened. This is a patch from CVS, so needs patch -p0.
Committed to 8.x and 7.x.