The pathrevisions_install() does not check if the nid, vid has been inserted already. This causes the install to fail when it tries to insert the same key (nid, vid). The url_alias table can have multiple path aliases for a given node.

Fix: the install should insert the latest found for a given nid and vid.

Comments

recrit’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

the attached patch adds a sort to the url_alias query and an array to track the processed keys.

  • cafuego committed bc3a36d on 7.x-1.x authored by recrit
    Issue #2263095 by recrit: Duplicate entry during module install
    
cafuego’s picture

Assigned: Unassigned » cafuego
Status: Needs review » Fixed

Patched (eventually), thank you :-)

Status: Fixed » Closed (fixed)

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