Code Monkey home page Code Monkey logo

Comments (5)

michitux avatar michitux commented on September 24, 2024 1

Okay, I have a very different idea. Maybe this is a result of dokufreaks/plugin-include#103 - what kind of ACLs do you have, are these pages non-public? If yes, consider turning off the safeindex option of the inculde plugin and re-index the pages with the include syntax (visiting the pages should be enough, the include plugin makes sure pages are re-index when that option has been changed).

from dokuwiki-plugin-move.

michitux avatar michitux commented on September 24, 2024

I cannot reproduce this. Is it possible that the index for the main page was not up to date? Or that moving page_2 failed? I've just added an additional test case to the include plugin with your example and it succeeds (see travis build).

from dokuwiki-plugin-move.

ceriph avatar ceriph commented on September 24, 2024

Hi michtiux, thanks for the reply. I've just double checked and I'd be suprised if it was an ACL issue as I'm creating the test pages as mentioned above to reproduce the issue myself, all the pages are created in the same way and it's only the one that isn't linked that doesn't move correctly. However I'm happy to try that if you still think it's a potential cause.

It might also help if I clarify my exact steps just to make sure I'm not doing anything wrong:

  • Create the main page ./old/namespace/main as per above.
  • Create ./old/namespace/1/page_1 and ./old/namespace/1/page_2
  • Navigate to the main page and see that the two includes are working
  • Select Admin -> Move pages and namespaces
  • Select Move namespace old:namespace and change to new:namespace
  • Ignore errors is unchecked and Rewrite links is checked
  • Press Start, then Start again
  • I then navigate to the new location of main ./new/namespace/main

It should be noted that page_2 does get moved correctly, it's just the include in main isn't updated.

I suppose it could be an index issue, any ideas how I can verify the index?

from dokuwiki-plugin-move.

michitux avatar michitux commented on September 24, 2024

If ./old/namespace/1/page_2 is non-public (i.e., is not accessible for the group @ALL) and the safeindex option of the include plugin is set, the include plugin won't create the necessary data for the index that is used by the move plugin. Links create that data regardless of the permissions, therefore having a link in addition to the include statement solves the problem. Note that it is only important that DokuWiki knows that the main page is somehow affected by moving page ./old/namespace/1/page_2, it is not important which syntax on the page is affected.

from dokuwiki-plugin-move.

ceriph avatar ceriph commented on September 24, 2024

Excellent, disabling safeindex has indeed solved the problem! Since our wiki is fully internal I don't see a reason why I can't just leave this disabled. Many thanks for your help Michael.

from dokuwiki-plugin-move.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.