aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/bestlink_change_update_issue.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-05 17:44:15 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-05 17:44:15 -0400
commit7a520974b59c1a498232512978e4abd926292066 (patch)
treeda81653cac47a81dbb22d0c6fa54a7ed5f73b666 /doc/bugs/bestlink_change_update_issue.mdwn
parent7ee7773e2acd97c81a20a877400e8126e981b424 (diff)
downloadikiwiki-7a520974b59c1a498232512978e4abd926292066.tar
ikiwiki-7a520974b59c1a498232512978e4abd926292066.tar.gz
uh oh, this affects link deps
Diffstat (limited to 'doc/bugs/bestlink_change_update_issue.mdwn')
-rw-r--r--doc/bugs/bestlink_change_update_issue.mdwn19
1 files changed, 9 insertions, 10 deletions
diff --git a/doc/bugs/bestlink_change_update_issue.mdwn b/doc/bugs/bestlink_change_update_issue.mdwn
index fee65c0de..211a78332 100644
--- a/doc/bugs/bestlink_change_update_issue.mdwn
+++ b/doc/bugs/bestlink_change_update_issue.mdwn
@@ -1,16 +1,15 @@
* Has bugs updating things if the bestlink of a page changes due to
adding/removing a page. For example, if Foo/Bar links to "Baz", which is
Foo/Baz, and Foo/Bar/Baz gets added, it will update the links in Foo/Bar
- to point to it, but will forget to update the linkbacks in Foo/Baz.
+ to point to it, but will forget to update the backlinks in Foo/Baz.
-* And if Foo/Bar/Baz is then removed, it forgets to update Foo/Bar to link
- back to Foo/Baz.
+* And if Foo/Bar/Baz is then removed, Foo/Bar gets a broken link,
+ instead of changing back to linking to Foo/Baz.
-As of 1.33, this is still true. The buggy code is the %linkchanged
-calculation in refresh(), which doesn't detect that the link has changed in
-this case.
+This old bug still exists as of 031d1bf5046ab77c796477a19967e7c0c512c417.
+and now this same problem also affects link dependencies.
-Still true in 1.43 although the code is much different now..
-
-> Still true as of 031d1bf5046ab77c796477a19967e7c0c512c417,
-> and now this same problem also affects link dependencies.
+(Some of) The buggy code is in `find_changed_links`
+which doesn't detect that the link has changed in
+this case, because when it looks at where the `%oldlinks` link to,
+it does so after having updated state to add/remove the page.