{"id":7055,"date":"2022-09-04T14:52:29","date_gmt":"2022-09-04T11:52:29","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=7055"},"modified":"2022-09-04T14:52:29","modified_gmt":"2022-09-04T11:52:29","slug":"using-a-path-with-umlauts-as-logdir-is-broken","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2022\/09\/04\/using-a-path-with-umlauts-as-logdir-is-broken\/","title":{"rendered":"Using a path with umlauts as logDir is broken"},"content":{"rendered":"<h3>Bug description<\/h3>\n<p>Using a path with umlauts as\u00a0<code class=\"notranslate\">logDir<\/code>\u00a0causes an incorrectly encoded directory to be created and used as log directory, instead of the specified directory.<\/p>\n<h3>Steps to reproduce<\/h3>\n<ol>\n<li>Quit the client.<\/li>\n<li>Edit\u00a0<code class=\"notranslate\">nextcloud.cfg<\/code>. Set\u00a0<code class=\"notranslate\">logDir=\/home\/jani\/T\u00e4nne<\/code>\u00a0(applying appropriately to your home directory)<\/li>\n<li>Start the client.<\/li>\n<li><code class=\"notranslate\">ls \/home\/jani\/T\u00e4nne<\/code><\/li>\n<\/ol>\n<h3>Expected behavior<\/h3>\n<p>A listing of new log files residing in\u00a0<code class=\"notranslate\">\/home\/jani\/T\u00e4nne<\/code>.<\/p>\n<h3>Which files are affected by this bug<\/h3>\n<p>This question is unclear. The log files are the ones affected.<\/p>\n<h3>Operating system<\/h3>\n<p>Linux<\/p>\n<h3>Which version of the operating system you are running.<\/h3>\n<p>Ubuntu 20.04<\/p>\n<h3>Package<\/h3>\n<p>Distro package manager<\/p>\n<h3>Nextcloud Server version<\/h3>\n<p>24.0.4<\/p>\n<h3>Nextcloud Desktop Client version<\/h3>\n<p>3.5.4-20220806.084713.fea986309-1.0~focal1<\/p>\n<h3>Is this bug present after an update or on a fresh install?<\/h3>\n<p>Updated from a minor version (ex. 3.4.2 to 3.4.4)<\/p>\n<h3>Are you using the Nextcloud Server Encryption module?<\/h3>\n<p>Encryption is Disabled<\/p>\n<h3>Are you using an external user-backend?<\/h3>\n<ul class=\"contains-task-list\">\n<li class=\"task-list-item enabled position-relative border-right-0 plain-task-item pr-6\" data-title=\"Default internal user-backend\" data-position=\"2,0\">\u00a0Default internal user-backend<button class=\"js-convert-to-issue-button convert-to-issue-button btn-link show-on-focus d-block position-absolute tooltipped tooltipped-n tooltipped-no-delay\" type=\"button\" aria-label=\"Convert to issue\" aria-describedby=\"button-description-2-0\"><\/button><\/li>\n<li class=\"task-list-item enabled position-relative border-right-0 plain-task-item pr-6\" data-title=\"LDAP\/ Active Directory\" data-position=\"2,1\">\u00a0LDAP\/ Active Directory<button class=\"js-convert-to-issue-button convert-to-issue-button btn-link show-on-focus d-block position-absolute tooltipped tooltipped-n tooltipped-no-delay\" type=\"button\" aria-label=\"Convert to issue\" aria-describedby=\"button-description-2-1\"><\/button><\/li>\n<li class=\"task-list-item enabled position-relative border-right-0 plain-task-item pr-6\" data-title=\"SSO - SAML\" data-position=\"2,2\">\u00a0SSO &#8211; SAML<button class=\"js-convert-to-issue-button convert-to-issue-button btn-link show-on-focus d-block position-absolute tooltipped tooltipped-n tooltipped-no-delay\" type=\"button\" aria-label=\"Convert to issue\" aria-describedby=\"button-description-2-2\"><\/button><\/li>\n<li class=\"task-list-item enabled position-relative border-right-0 plain-task-item pr-6\" data-title=\"Other\" data-position=\"2,3\">\u00a0Other<button class=\"js-convert-to-issue-button convert-to-issue-button btn-link show-on-focus d-block position-absolute tooltipped tooltipped-n tooltipped-no-delay\" type=\"button\" aria-label=\"Convert to issue\" aria-describedby=\"button-description-2-3\"><\/button><\/li>\n<\/ul>\n<h3>Nextcloud Server logs<\/h3>\n<p><em>No response<\/em><\/p>\n<h3>Additional info<\/h3>\n<p>This bizarre and otherwise exhaustingly long issue form is lacking a &#8221;What happens instead of my expected outcome&#8221; question, so I&#8217;m entering it here instead: there are no logs in the specified target directory (it doesn&#8217;t even exist if you&#8217;ve not created it beforehand). Instead, like in the ye olden days, there is now a directory called\u00a0<code class=\"notranslate\">T\u00c3\u00a4nne<\/code>\u00a0containing the logs. In\u00a0<code class=\"notranslate\">nextcloud.cfg<\/code>\u00a0the path has been re-encoded as\u00a0<code class=\"notranslate\">logDir=\/home\/jani\/T\\xc3\\xa4nne\/<\/code>\u00a0which is apparently how it should be, since a similarly re-encoded value for a\u00a0<code class=\"notranslate\">...localPath<\/code>\u00a0with umlauts in the\u00a0<code class=\"notranslate\">[accounts]<\/code>\u00a0section has been working just fine for as long as I can remember using it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using a path with umlauts as logDir causes an incorrectly encoded directory to be created and used, instead of the specified directory.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[],"class_list":["post-7055","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","sijainti-nextcloud","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=7055"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7055\/revisions"}],"predecessor-version":[{"id":7058,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7055\/revisions\/7058"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=7055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=7055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=7055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}