I think this might only happen in a few specific cases, but a site I'm working on broke when I upgraded from Domain 3.4 to 3.8. I found out that at least one node_load() was triggering a domain_source_lookup(), which tried to load the same node again.

According to the backtrace, one of the text fields of a node has pathologic filter the links in it, which calls url(), which allows domain to alter the URL. It might be that the node has a link to itself that is the real cause of the problem. Unfortunately, I can't really wade through thousands of nodes and text fields, so I'm using the attached patch.

Comments

Island Usurper’s picture

Status: Active » Needs review

No, this is the correct status.

agentrickard’s picture

Version: 7.x-3.8 » 7.x-3.x-dev
Status: Needs review » Needs work

Interesting. This refactor was introduced to be more consistent, but I see that domain_get_node_match() -- which calls this hook -- doesn't do a node_load() either, so perhaps the straight lookup is ok here.

The patch does need a re-roll against dev.

agentrickard’s picture

Status: Needs work » Needs review
StatusFileSize
new1.19 KB

Here's the re-roll. Needs a review. Tests still pass.

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community

Positive review over in #1914744: Update Time. Committing.

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed
   1b3b5b7..d497a98  7.x-3.x -> 7.x-3.x
agentrickard’s picture

Status: Fixed » Closed (fixed)

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