错误“服务器发送了不正确的 HTTP 响应."使用 Subversion 1.8+ 客户端提交 [英] Error "The server sent an improper HTTP response." on commit with Subversion 1.8+ client

查看:65
本文介绍了错误“服务器发送了不正确的 HTTP 响应."使用 Subversion 1.8+ 客户端提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我一直在使用 TortoiseSVN (1.8.7.25475) 或 AnkhSVN (2.5.12471.17) 提交单个 SVN 存储库时出错:

<块引用>

错误运行上下文:服务器发送了不正确的 HTTP 响应

这是 TortoiseSVN 中的错误截图:

像素当然不同,但AnkhSVN中的错误是一样的.

这似乎只影响提交修改的尝试,而不影响添加或删除;我可以将 mod 提交到同一台服务器上的其他几个 SVN 存储库.

由于我的队友继续向有问题的 repo 提交 mod 并且这个问题只影响了我对该 repo 的提交,我尝试在重新检出 repo 后提交简单的 mod:几个 one-mod-at-a-时间提交有效,但随后...同样的错误.

我还搜索、审查并尝试了一些可能的解决方案(例如在 Stefan Küng 回复的 TortoiseSVN 论坛上的一个帖子) - 注册表调整(删除 HKEY_CURRENT_USER\Software\Tigris.org - 当然是导出备份后),检查我的全局属性,并确保我没有使用代理.同样的错误.

最后,我尝试修复和降级 TortoiseSVN.同样的错误.

有没有其他人在类似情况下遇到过这个错误并找到了解决方法?

请注意,一些相关的搜索结果提到调整 httpd.conf 或 SVN 服务器 的其他方面,但服务器调整对我来说似乎不合适.同样,我的队友继续使用相同版本的 TortoiseSVN、相同的操作系统(Win 7 Pro 64 位)等将 mod 提交到同一个 repo.不过,也许我错过了服务器上可能会影响到我的某些内容.

解决方案

将您的 Subversion 客户端升级到最新版本.

<小时>

过时的答案:

在客户端机器上! 打开 %APPDATA%\Subversion\servers 在文本编辑器中添加行 http-bulk-updates = yes,保存文件,看看是否有帮助.

如果有帮助,您最好使用 SVNAllowBulkUpdates prefer 指令配置 Apache HTTP Server 的 httpd.conf,以便所有 Subversion 1.8 客户端都可以连接而不会出现任何错误.>

如果您的组织中不止您一个人收到此错误并且调整服务器的配置仍然不可接受,请您可以通过 Windows 注册表更改设置 http-bulk-updates = yes 所以调整这个在所有受影响的机器上都可以通过 AD 组策略完成.

Apache Subversion 1.8 发行说明中阅读更多信息.

P.S.:网络硬件/防火墙/防病毒软件故障仍然是这里的根本原因.以上只是使用 neon 网络库恢复到 Subversion 1.7 和旧客户端的行为的一种解决方法.顺便说一句,我猜安装的杀毒软件是 NOD32 或 BitDefender.

Recently I have been plagued by an error on committing to a single SVN repo using TortoiseSVN (1.8.7.25475) or AnkhSVN (2.5.12471.17):

Error running context: The server sent an improper HTTP response

Here is a screenshot of the error in TortoiseSVN:

The pixels differ of course, but the error is the same in AnkhSVN.

This only seems to affect attempts to commit modifications, not additions or deletions; and I can commit mods to several other SVN repos on the same server just fine.

Since my teammates continue to commit mods to the repo in question and the issue has only struck my commits to that repo, I tried committing simple mods after a fresh checkout of the repo: a few one-mod-at-a-time commits worked, but then...same error.

I also searched for, reviewed, and tried some possible solutions (e.g. in a thread on the TortoiseSVN forums to which Stefan Küng replied) - a registry tweak (deleting HKEY_CURRENT_USER\Software\Tigris.org - after exporting it for backup of course), checking my global properties, and ensuring that I am not using a proxy. Same error.

Finally, I tried both repairing and downgrading TortoiseSVN. Same error.

Has anyone else encountered this error under similar circumstances and found a solution to it?

Note that some related search results mention tweaking httpd.conf or other aspects of the SVN server, but server tweaks seem inappropriate to me. Again, my teammates continue to commit mods to the same repo using the same version of TortoiseSVN, the same OS (Win 7 Pro 64-bit) etcetera. Maybe I have missed something on the server that could just happen to affect me, though.

解决方案

Upgrade your Subversion client to the latest version.


Outdated answer:

ON THE CLIENT MACHINE! Open %APPDATA%\Subversion\servers in a text editor and add the line http-bulk-updates = yes, save the file and see if it helps.

If it helps, you'd better configure Apache HTTP Server's httpd.conf with SVNAllowBulkUpdates prefer directive so that all Subversion 1.8 clients could connect without any errors.

If there are more than just you who get this error in your organization and adjusting server's configuration is still unacceptable, you can change the setting http-bulk-updates = yes via Windows Registry so adjusting this on all affected machines can be done via AD Group Policy.

Read more info in Apache Subversion 1.8 Release Notes.

P.S.: faulty network hardware / firewall / antivirus is still the root cause here. The above is just a workaround to revert to the behavior of Subversion 1.7 and older client with neon network library. BTW, I guess that the installed antivirus is NOD32 or BitDefender.

这篇关于错误“服务器发送了不正确的 HTTP 响应."使用 Subversion 1.8+ 客户端提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆