Zim

Support for UNC-Paths and Folder Redirection on Windows

Bug #1279270 reported by Matthias Weiler
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Medium
Unassigned

Bug Description

I'm not able to save a new Notebook to a redirected folder (for example "my documents") because the "choose Folder"-dialog does only show the local folders in C:\Users\username, not the ones that are redirected to a Server.

I also tried to copy the notebook to a redirected Path but wasn't able to open it there. I have it in the "open Notebook"-dialog now, but the Path says: \\servername\sharename\folder1\folder2\.. and if I try to open it, I get an ugly:
Could not find Notebook file://////servername/sharename/folder1/folder2/..

The problem seems to be, that Zim doesn't know about UNC-Paths on Windows.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1279270] [NEW] Support for UNC-Paths and Folder Redirection on Windows

I don't understand what you mean by "redirect" folders. What kind of
redirect are we talking about here ?

Zim should be able to access UNC paths, tested specifically for links,
maybe there is a bug when resolving a notebook to an UNC path ?

Regards,

Jaap

On Wed, Feb 12, 2014 at 11:01 AM, Matthias Weiler <
<email address hidden>> wrote:

> Public bug reported:
>
> I'm not able to save a new Notebook to a redirected folder (for example
> "my documents") because the "choose Folder"-dialog does only show the
> local folders in C:\Users\username, not the ones that are redirected to
> a Server.
>
> I also tried to copy the notebook to a redirected Path but wasn't able to
> open it there. I have it in the "open Notebook"-dialog now, but the Path
> says: \\servername\sharename\folder1\folder2\.. and if I try to open it, I
> get an ugly:
> Could not find Notebook file://////servername/sharename/folder1/folder2/..
>
> The problem seems to be, that Zim doesn't know about UNC-Paths on
> Windows.
>
> ** Affects: zim
> Importance: Undecided
> Status: New
>
>
> ** Tags: windows
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1279270
>
> Title:
> Support for UNC-Paths and Folder Redirection on Windows
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1279270/+subscriptions
>

Revision history for this message
Matthias Weiler (matthias-weiler) wrote :

I'm refering to Folder Redirection as used by Microsoft.
https://en.wikipedia.org/wiki/Folder_redirection

On my System "My Documents" is not a local folder in my profile but is redirected to an smb-share (UNC-Path). That means that I don't see that Folder when opening C:\Users\unsername\. But when I open my Home-Folder with Windows Explorer, the "My Documents" subfolder is shown.

The open-dialog of Zim does not show "My Documents".

I will do some more tests on Monday to see if UNC-Paths generally work and will give you more information.

Revision history for this message
Mike Wang (mcfalski) wrote :

I get this error when I try to create a notebook at a UNC path:

This is zim 0.62
Platform: nt
Locale: en_CA cp1252
FS encoding: mbcs
Python: (2, 7, 8, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: 062
  revision: 739 <email address hidden>
  date: 2014-10-10 21:28:06 +0200

======= Traceback =======
  File "zim\gui\widgets.pyo", line 3077, in do_response
  File "zim\gui\notebookdialog.pyo", line 350, in do_response_ok
  File "zim\gui\__init__.pyo", line 1206, in open_notebook
  File "zim\ipc.pyo", line 822, in get_notebook
  File "zim\ipc.pyo", line 804, in get_proxy
  File "zim\ipc.pyo", line 769, in call
TypeError: ('__init__() takes exactly 2 arguments (1 given)', <class 'zim.fs.FileNotFoundError'>, ())

It created the folder and notebook.zim, but seems to have problems opening it. It opens fine when the path is mapped to a drive letter, but not directly via the UNC path.

Revision history for this message
sclebo05 (sclebo05) wrote :

Similar issue, on 0.63 with Roaming Profiles on Windows, I get type error in __init__ not recieving 2 arguments ( see below )

I am also attaching a picture, which shows a notebook in the 'local' directory structure, and one that was 'created' but cannot be opened on the UNC based Roaming Profile.

Error:

This is zim 0.63
Platform: nt
Locale: en_US cp1252
FS encoding: mbcs
Python: (2, 7, 10, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: trunk
  revision: 766 <email address hidden>
  date: 2015-06-14 11:19:01 +0200

======= Traceback =======
  File "zim\gui\widgets.pyo", line 3087, in do_response
  File "zim\gui\notebookdialog.pyo", line 350, in do_response_ok
  File "zim\gui\__init__.pyo", line 1208, in open_notebook
  File "zim\ipc.pyo", line 822, in get_notebook
  File "zim\ipc.pyo", line 804, in get_proxy
  File "zim\ipc.pyo", line 769, in call
TypeError: ('__init__() takes exactly 2 arguments (1 given)', <class 'zim.fs.FileNotFoundError'>, ())

Changed in zim:
status: New → Confirmed
importance: Undecided → Medium
tags: added: usability
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.