-
-
Notifications
You must be signed in to change notification settings - Fork 849
-
-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page history messed up when pagename contains a dot #3613
Comments
This must be bug with #3361 . page name contains dot Could I add more commit to fix this issue in #3607 ? |
@ssahara please open a new PR for the fix. |
Fix revision history for pages with periods/dots in name. Issue dokuwiki#3613
Possible fix: #3730 Pardon me if I'm not doing this right.. My first time posting on GitHub. |
Hi, it is indeed a option to look for the request parameters proposed, but probably there are exceptions on this approach. The Edit: ah, sorry I looked wrong, this about the RevisionInfo class, that one does not yet know page/media type. Then I have to look a bit further. Could it be that RevisionInfo is always initiated by a source that knows the type? |
RevisionInfo is filled with an array, could you check if that array contains |
Yup, we both found |
Thanks for the contribution! |
Glad to help! |
I am adding this comment as it took me awhile to find this page. I was searching for "Old Revisions not working 2022-07-31a "Igor" as I didn't realize at first that it was related to the '.' in the page name. Hopefully this comment will help others find this page more easily. Thank you for the work on this issue. |
Is it possible to have a new release with this fix in it? The issue is very confusing for users and they ask administrators if something is broken with there data at all. Would really appreciate when it would be fixed within a release. Thanks! |
In the meantime you can just change the broken line 39 with the fix from 8acc3ab: In File inc/ChangeLog/RevisionInfo.php: 39 # $info['mode'] = strrpos($info['id'], '.') ? 'media' : 'page'; This fixes the change history for paths with a . in it. |
Sorry but this is not a good practice. I don't want to patch software on my machines after a new release is published. What is the problem with releasing a new version of Dokuwiki with this bugfix? I mean this bug breaks a really important functionality in that kind of software: the page history. |
Hi,
I found a funny and strange bug. It's triggered by a dot in the pagename. I first noticed with the findbad.php history page. I originally thought
.php
was the cause, but any pagename with a dot shows the problem.If you follow the
do=revisions
link, you get to a strange history page where only one link is present. This unique link links to?do=media
.See this history https://www.dokuwiki.org/playground:eleph.pant?do=revisions
The text was updated successfully, but these errors were encountered: