合并后无法将jar文件提交到svn:502'Bad Gateway' [英] Cannot commit jar file to svn after merge: 502 'Bad Gateway'

查看:1042
本文介绍了合并后无法将jar文件提交到svn:502'Bad Gateway'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在客户端上将visualsvn与tortoiseSVN一起用于二进制文件的版本控制.也就是说,当我们要测试项目时,将test分支与build分支合并.这实际上将jar文件更新为较新的版本.

由于某种原因,我无法提交现在合并的测试分支,但出现502错误的网关错误. 我可以提交一些更新的文件,我已开始删除旧的jar文件,但无法提交新的jar.

我得到的错误指向构建分支,而不是测试分支,我认为这可能是原因.我尝试删除有问题的文件,并用构建中的副本替换它(手动合并).但是我遇到了同样的错误.

Commit failed (details follow):
Unexpected HTTP status 502 'Bad Gateway' on
'/svn/binaries/!svn/rvr/11730/myProject/branches/build/newestversion.jar'

编辑:该错误与合并有关.撤消 add 后,我已将jar文件复制到测试目录中,添加了该文件,并提交了没有任何异常的文件.

错误传播:将阶段与测试合并后,我得到与上述相同的错误,但带有:

'/svn/binaries/!svn/rvr/11737/myProject/branches/ tst /newestversion.jar'

解决方案

根据对support@visualsvn.com的调查,根本原因是%VISUALSVN_SERVER%conf\httpd-custom.conf文件中的以下行:

RequestHeader edit Destination ^https http early

删除此行即可解决此问题.

顺便说一句,我可以猜想这行是为了实现从HTTP到HTTPS的自动重定向而添加的.使用现代的VisualSVN Server版本,您可以通过VisualSVN Server Manager控制台启用此重定向.因此,无需将该行添加到conf文件中.

您可以按照以下步骤操作:

  1. 启动 VisualSVN服务器管理器控制台.
  2. 点击操作|属性.
  3. 点击网络标签.
  4. 选择自动将HTTP重定向到HTTPS(在端口80上监听)选项.
  5. 点击应用.

We use visualsvn with tortoiseSVN on the client for version control of the binaries. That is, when we want to test a project, the test branch is merged with the build branch. This essentially updates the jar file to a newer version.

For some reason i cannot commit the now merged test branch, i get a 502 'Bad Gateway' error. I can commit some of the updated files, i have comitted the delete of the old jar file but i cannot commit the new jar.

The error i get points to the build branch, not the test branch, which i think may be the cause. I have tried deleting the offending file and replacing it with a copy from the build (sort of manual merge). But i get the same error.

Commit failed (details follow):
Unexpected HTTP status 502 'Bad Gateway' on
'/svn/binaries/!svn/rvr/11730/myProject/branches/build/newestversion.jar'

EDIT: The error has something to do with the merge. After undoing the add, i have copied the jar file into the test directory, added it and commited without any hick-ups.

The error propagates: after merging staging with test, i get the same error as above but with:

'/svn/binaries/!svn/rvr/11737/myProject/branches/tst/newestversion.jar'

解决方案

Per investigation with support@visualsvn.com, the root cause was the following line in the %VISUALSVN_SERVER%conf\httpd-custom.conf file:

RequestHeader edit Destination ^https http early

Removing this line resolves the issue.

BTW, I can guess that the line was added to implement automatic redirection from HTTP to HTTPS. With modern VisualSVN Server versions, you can enable this redirection via the VisualSVN Server Manager console. Therefore, no need to add that line to the conf file.

You can follow these steps:

  1. Start the VisualSVN Server Manager console.
  2. Click Action | Properties.
  3. Click Network tab.
  4. Select the Automatically redirect HTTP to HTTPS (listen on port 80) option.
  5. Click Apply.

这篇关于合并后无法将jar文件提交到svn:502'Bad Gateway'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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