Zim

subpage content lost on rename

Bug #1743993 reported by Alessandro Pocaterra on 2018-01-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Undecided
Unassigned

Bug Description

I had a page "aaa" and a subpage "supervisor and ndscheduler". I removed the heading inside the body.

I wanted to rename it as "install supervisor and ndscheduler".

It gave me an error (alas I don't remember it, but it said something a not valid name). After the error I had the possibility to change to another title but strangely enough the proposed title was "install supervisor and ndscheduler s" (not the extra blank+"s" at the end).

I exited without changing and the page content was gone. Not I have a "supervisor and ndscheduler" (the original name) with a heading only, as the page was created from the scratch.

If I want to rename it to "install supervisor and scheduler" and rewrite the content it gives me the error "Page already exists".

So the page "install supervisor and scheduler" is somewhere but not visible in the index, nor through search.

It is not possible to export the db to HTML: the last screen reads BACK/FORWARD when it should be BACK/OK (I do it often and I remember this). There is no extra page after selecting the HTML file name so it stops there without the possibility to move on.

I also got this error:

This is zim 0.65
Platform: posix
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 12, 'final', 0)
Gtk: (2, 24, 30)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim-trunk
  revision: 805 <email address hidden>
  date: 2015-11-01 15:42:45 +0100

======= Traceback =======
  File "/usr/lib/python2.7/dist-packages/zim/gui/__init__.py", line 885, in _action_handler
    method(*arg)
  File "/usr/lib/python2.7/dist-packages/zim/gui/__init__.py", line 1716, in delete_page
    self.notebook.trash_page(path, update_links, callback)
  File "/usr/lib/python2.7/dist-packages/zim/notebook.py", line 1767, in trash_page
    return self._delete_page(path, update_links, callback, trash=True)
  File "/usr/lib/python2.7/dist-packages/zim/notebook.py", line 1795, in _delete_page
    self.flush_page_cache(path)
  File "/usr/lib/python2.7/dist-packages/zim/notebook.py", line 1395, in flush_page_cache
    assert not page.modified, 'BUG: Flushing page with unsaved changes'
AssertionError: BUG: Flushing page with unsaved changes

***************************
* EDIT: After restart it is saved as PAGE and moved accordingly in the index.

It is not possible to move it back under "aaa", not even after renaming it to "install supervisor and ndscheduler".

Now it is a PAGE in the main index with the new name.

It has been moved to PAGE and a random subpage was under it. I assume there is a PROBLEM with the tree indexes.

It is possible now to export the db to single HTML.

Something strange again: leaving the page open and doing nothing (I am writing this issue) I see that every few minutes a (gray?) hint box moves very fast from the top to the bottom of the index. It is to random and fast that I cannot read it.
It looks like the index is continuously refreshing, as it does after a change.

description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers