Skip to content

Plugin-dir with cols=tags writes/corrupts data/index/topic.idx #6

Description

@LukasDrude

Versions:

  • Release 2012-01-25a “Angua”
  • lupo49-dokuwiki-plugin-dir-860ca8b.tar.gz
  • dokufreaks-plugin-tag-2010-11-12-30-ga058f92.tar.gz
  • dokufreaks-plugin-pagelist-2010-01-07-18-gfb8719a.tar.gz

I use the Plugin-dir the following way, if I do not use the "tags"-keyword, the error does not occur:
~~DIR?cols=page;tags;mdate~~

Each refresh of the page containing the above statement modifies the file data/index/topic.idx so that it becomes incorrect. For example pages seem to have tags, which they in fact do not have. Some pages are listed twice within one tag.

To visualize this for a human reader, I modified the "topic.idx" with "sed":
cat topic.idx | sed 's/}/\n}\n\n/g' | sed 's/i:/\n i:/g' > topic_nice.idx

I was now able to compare the version after a rebuild with "Tagindex Manager" (here are just parts):

    +s:4:"java";a:8:{
       i:0;s:8:"freemind";
       i:1;s:12:"zettelkasten";
    +  i:2;s:9:":freemind";
    +  i:3;s:27:":gruenes_curry_huehnerbrust";
    +  i:4;s:28:":hackfleisch_gruener_pfeffer";
    +  i:5;s:21:":ingwer_moehren_suppe";
    +  i:6;s:8:":kdialog";
    +  i:7;s:13:":zettelkasten";
     }

As you can see, the pages "freemind" and "zettelkasten" are now added twice (once with colon and once without). Also all other added entries are not related to the tag "java" in any way.

(If you need further information, please let me know. This is my first issue submission and I was not able to understand the source-code without additional comments.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions