[server] fixes in for_open() and for_edit() pseudofilters as well as in get_notes_for_<open|edit> method