{"id":41,"date":"2011-08-30T12:36:36","date_gmt":"2011-08-30T12:36:36","guid":{"rendered":"http:\/\/devzing.com\/blog2\/subversion-tip-update-works-but-commit-fails\/"},"modified":"2015-03-04T23:07:06","modified_gmt":"2015-03-04T23:07:06","slug":"subversion-tip-update-works-but-commit-fails","status":"publish","type":"post","link":"https:\/\/devzing.com\/blog\/index.php\/subversion-tip-update-works-but-commit-fails\/","title":{"rendered":"Subversion tip: Update works, but commit fails"},"content":{"rendered":"<p>You use devZing <a href=\"\/subversion\" target=\"_blank\">Subversion hosting<\/a> for your project. The time comes to sync your file(s) and a problem arises when you do so. I mean, the update worked. But it fails to actually commit. The error message \u201cAuthorization failed\u201d appears. What is going on? How can there be an authorization failure?<\/p>\n<p>Well, the problem is simple and the solution is simple, too.<\/p>\n<p>Here\u2019s the problem: Subversion has a quirk. It lies in the commit process.<\/p>\n<p>When you create a working copy, you can accidentally put in a technically incorrect URL and it still works. The checkout allows the case of the characters to not match the \u201cofficial\u201d URL. Because the update command is case in-sensitive, whereas the commit command is case sensitive, Subversion allows the error. For example, your original (and &#8220;official&#8221;) URL may be &#8220;svn:\/\/svn.devzing.com<strong>\/Me\/MyRepo1<\/strong>&#8220;. But when you enter the URL in the checkout command, the command which creates the working copy, you accidentally enter everything lowercase. You put in &#8220;svn:\/\/svn.devzing.com\/<strong>me\/myrepo1<\/strong>&#8220;. That\u2019s easy enough to do.<\/p>\n<p>But the commit doesn\u2019t recognize this URL and rejects it with an \u201cAuthorization failed\u201d message. It only accepts the exact original.<\/p>\n<p>So check your original repository URL.<\/p>\n<p>\u00a0<\/p>\n<div class=\"image_block\"><a href=\"\/blog\/media\/blogs\/devzing\/subversion-manage.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/media\/blogs\/devzing\/subversion-manage.png\" alt=\"\" width=\"527\" height=\"145\" \/><\/a><\/div>\n<div class=\"image_block\"><a href=\"\/blog\/media\/blogs\/devzing\/subversion-repository-list.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/media\/blogs\/devzing\/subversion-repository-list.png\" alt=\"\" width=\"580\" height=\"141\" \/><\/a><\/div>\n<p>\u00a0<\/p>\n<p>Make sure everything is exactly as it shows in the URL column.<\/p>\n<p>The solution is simple indeed. Just check the URL of your working copy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You use Subversion for your project. The time comes to sync your file(s) and a problem arises when you do so. I mean, the update worked. But it fails to actually commit. The error message \u201cAuthorization failed\u201d appears. What is going on? How can there be&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-subversion","entry"],"_links":{"self":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":1,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}