{"action":"created","issue":{"url":"https://api.github.com/repos/Kozea/Radicale/issues/164","repository_url":"https://api.github.com/repos/Kozea/Radicale","labels_url":"https://api.github.com/repos/Kozea/Radicale/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/Radicale/issues/164/comments","events_url":"https://api.github.com/repos/Kozea/Radicale/issues/164/events","html_url":"https://github.com/Kozea/Radicale/issues/164","id":34323457,"number":164,"title":"value of 'filesystem_folder' appears twice in 'abs_path'","user":{"login":"tools400","id":3110562,"avatar_url":"https://avatars.githubusercontent.com/u/3110562?v=3","gravatar_id":"","url":"https://api.github.com/users/tools400","html_url":"https://github.com/tools400","followers_url":"https://api.github.com/users/tools400/followers","following_url":"https://api.github.com/users/tools400/following{/other_user}","gists_url":"https://api.github.com/users/tools400/gists{/gist_id}","starred_url":"https://api.github.com/users/tools400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tools400/subscriptions","organizations_url":"https://api.github.com/users/tools400/orgs","repos_url":"https://api.github.com/users/tools400/repos","events_url":"https://api.github.com/users/tools400/events{/privacy}","received_events_url":"https://api.github.com/users/tools400/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kozea/Radicale/labels/bug","name":"bug","color":"9a62d3"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Kozea/Radicale/milestones/2","html_url":"https://github.com/Kozea/Radicale/milestones/2.0","labels_url":"https://api.github.com/repos/Kozea/Radicale/milestones/2/labels","id":415718,"number":2,"title":"2.0","description":"Next-gen version with features described in #372.","creator":{"login":"liZe","id":952243,"avatar_url":"https://avatars.githubusercontent.com/u/952243?v=3","gravatar_id":"","url":"https://api.github.com/users/liZe","html_url":"https://github.com/liZe","followers_url":"https://api.github.com/users/liZe/followers","following_url":"https://api.github.com/users/liZe/following{/other_user}","gists_url":"https://api.github.com/users/liZe/gists{/gist_id}","starred_url":"https://api.github.com/users/liZe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liZe/subscriptions","organizations_url":"https://api.github.com/users/liZe/orgs","repos_url":"https://api.github.com/users/liZe/repos","events_url":"https://api.github.com/users/liZe/events{/privacy}","received_events_url":"https://api.github.com/users/liZe/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":66,"state":"open","created_at":"2013-08-30T15:19:59Z","updated_at":"2016-08-05T00:45:51Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-05-26T18:32:56Z","updated_at":"2016-08-05T00:45:51Z","closed_at":"2016-08-05T00:45:51Z","body":"On Windows 7, the value of 'filesystem_folder' appears twice in 'abs_path', using the following configuration:\r\n```\r\n# Folder for storing local collections, created if not present\r\n## filesystem_folder = ~/.config/radicale/collections\r\nfilesystem_folder = .\\collectionsX\\\r\n```\r\nRadicale is startet with the following cmd file to load the configuration file:\r\n```\r\nset PYTHON_HOME=c:\\Programme_x86\\Python34\r\nset RADICALE_CONFIG=c:\\Programme_x86\\Radicale\\\r\ncls\r\ncall %PYTHON_HOME%\\python.exe radicale.py --config=%RADICALE_CONFIG%\\config\r\n```\r\nNothing else of the config file has been changed.\r\n\r\nIn order to get the values of 'FOLDER' and 'path' of filesystem.py, I added logging statements to the open() method like this:\r\n```\r\n# On enter\r\nabs_path = os.path.join(FOLDER, path.replace(\"/\", os.sep))\r\nlog.LOGGER.warning(\"FOLDER=\" + FOLDER)\r\nlog.LOGGER.warning(\"path=\" + path)\r\nlog.LOGGER.warning(\"Calendar file: \" + abs_path)\r\n```\r\nThe console output shows:\r\n```\r\nAnonymous has read access to collection user/Joe/\r\nAnonymous has write access to collection user/Joe/\r\nFOLDER=.\\collectionsX\\\r\npath=.\\collectionsX\\user\\Joe.props\r\nCalendar file: .\\collectionsX\\.\\collectionsX\\user\\Joe.props\r\nTraceback (most recent call last):\r\n  File \"c:\\Programme_x86\\Python34\\lib\\wsgiref\\handlers.py\", line 137, in run\r\n    self.result = application(self.environ, self.start_response)\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\__init__.py\", line 298, in __call__\r\n    user)\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\__init__.py\", line 512, in propfind\r\n    environ[\"PATH_INFO\"], content, collections, user)\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\xmlutils.py\", line 239, in propfind\r\n    response = _propfind_response(path, collection, props, user)\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\xmlutils.py\", line 346, in _propfind_\r\nresponse\r\n    not item.exists and item.resource_type):\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\ical.py\", line 435, in resource_type\r\n    if self.tag == \"VADDRESSBOOK\":\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\ical.py\", line 422, in tag\r\n    return props[\"tag\"]\r\n  File \"c:\\Programme_x86\\Python34\\lib\\contextlib.py\", line 66, in __exit__\r\n    next(self.gen)\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\storage\\filesystem.py\", line 136, in\r\nprops\r\n    with open(self._props_path, \"w\") as prop_file:\r\n  File \"c:\\Programme_x86\\Python34\\lib\\contextlib.py\", line 59, in __enter__\r\n    return next(self.gen)\r\n  File \"c:\\Programme_x86\\Radicale\\radicale\\storage\\filesystem.py\", line 54, in o\r\npen\r\n    with codecs.open(abs_path, mode, config.get(\"encoding\", \"stock\")) as fd:\r\n  File \"c:\\Programme_x86\\Python34\\lib\\codecs.py\", line 896, in open\r\n    file = builtins.open(filename, mode, buffering)\r\nFileNotFoundError: [Errno 2] No such file or directory: '.\\\\collectionsX\\\\.\\\\col\r\nlectionsX\\\\user\\\\Joe.props'\r\n```\r\nAny ideas of what I am missing?\r\n\r\nThomas."},"comment":{"url":"https://api.github.com/repos/Kozea/Radicale/issues/comments/237727386","html_url":"https://github.com/Kozea/Radicale/issues/164#issuecomment-237727386","issue_url":"https://api.github.com/repos/Kozea/Radicale/issues/164","id":237727386,"user":{"login":"liZe","id":952243,"avatar_url":"https://avatars.githubusercontent.com/u/952243?v=3","gravatar_id":"","url":"https://api.github.com/users/liZe","html_url":"https://github.com/liZe","followers_url":"https://api.github.com/users/liZe/followers","following_url":"https://api.github.com/users/liZe/following{/other_user}","gists_url":"https://api.github.com/users/liZe/gists{/gist_id}","starred_url":"https://api.github.com/users/liZe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liZe/subscriptions","organizations_url":"https://api.github.com/users/liZe/orgs","repos_url":"https://api.github.com/users/liZe/repos","events_url":"https://api.github.com/users/liZe/events{/privacy}","received_events_url":"https://api.github.com/users/liZe/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T00:45:51Z","updated_at":"2016-08-05T00:45:51Z","body":"Storing calendars in the program directory **and** making this behaviour sharable with a zip is a bit too much for me :smile:. Adding a Windows script + fixing #154 makes the trick."}}
{"actor":{"display_login":"liZe"}}