Page MenuHomePhabricator

Redirect issue
Closed, ResolvedPublic

Description

Author: mail

Description:
Consider the following scenario:
There is a property "Property:Customer" and a page "Xyz AG". On a page "Project 123" we have "[[Customer::Xyz AG]]". The query {{#show: Project 123 |?Customer}} returns "Xyz AG".

Now someone moves "Xyz AG" to "Abc AG". A redirect from page "Xyz AG" to "Abc AG" gets automatically created. {{#show: Project 123 |?Customer}} now returns "Abc AG" - everything as expected. Now someone decides that the move was wrong, and moves "Abc AG" back to "Xyz AG". A redirect from "Abc AG" to "Xyz AG" gets created, which now contains the actual content again. But when you run the query {{#show: Project 123 |?Customer}}, there is no result at all anymore - it should
return "Xyz AG".


I figured out that the 'smw_iw' column in the 'smw_ids' table needs to be emptied (remove ':smw-redi') for those rows where the column 'smw_title' equals the page name of the ex-redirect in order to fix the problem.


Version: unspecified
Severity: major

Details

Reference
bz23189

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:04 PM
bzimport set Reference to bz23189.

Thanks, I will try to debug his. Is the problem happening on SMW 1.5.0 or on some other version?

mail wrote:

Yes, that's 1.5.0 - I'm not sure if it happened with earlier versions, maybe I just never encountered it.

Thanks!

This problem was introduced by a typo in SMW 1.5.0 and will be fixed in SMW 1.5.1. Moving an affected page back and forth again fixes the database entry. I fear that the usual date repair feature of SMW may not achieve this (just like a normal re-safe of the page may not suffice). If many pages are affected, then the thorough repair (deleting all data first, as described on the SMW homepage under "repair") is required.