-
Bug
-
Resolution: Low Engagement
-
Low
-
None
-
6.8.1, 6.9.0
-
1
-
Severity 3 - Minor
-
Issue Summary
Source Code Checkout task is not working as expected if the SVN Server is available on both http and https behind an Apache proxy.
Environment
- SVN Server
- Apache Proxy using the following proxy rules:
<VirtualHost *:80> ServerName svn.someserver.com RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://svn.someserver.com/$1 [R=301,L] </VirtualHost> <VirtualHost *:443> ServerName svn.someserver.com SSLEngine On SSLCertificateFile /opt/ssl/server.crt SSLCertificateKeyFile /opt/ssl/server.key SSLProxyEngine on <Location /> ProxyPass http://svn-server:18080/ ProxyPassReverse http://svn-server:18080/ </Location> </VirtualHost>
Expected Results
The repositories will be cloned respecting the branch path defined at the task configuration.
Actual Results
If you try to clone the repository using the http address, the Source Code Checkout task will ignore the branch path and clone the entire repository.
i.e:
Over HTTPS:
2019-05-22 15:31:22,817 INFO [19-BAM::Agnt2::Agent:pool-34-thread-1] [TaskExecutorImpl] REP-ST-SJ-4: Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' 2019-05-22 15:31:22,821 INFO [19-BAM::Agnt2::Agent:pool-34-thread-1] [VcsCheckoutTask] REP-ST-SJ-4: Updating source code to revision: 4 2019-05-22 15:31:22,830 INFO [19-BAM::Agnt2::Agent:pool-34-thread-1] [SvnWorkingCopyManager] REP-ST-SJ-4: Working directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-SJ' is empty. Checking out SVN URL 'https://svn.someserver.com/svn/svntest/trunk/feature' 2019-05-22 15:31:26,210 DEBUG [19-BAM::Agnt2::Agent:pool-34-thread-1] [BuildLoggerUpdateEventHandler] /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-SJ 2019-05-22 15:31:28,669 DEBUG [19-BAM::Agnt2::Agent:pool-34-thread-1] [BuildLoggerUpdateEventHandler] U /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-SJ/text.cs 2019-05-22 15:31:28,710 DEBUG [19-BAM::Agnt2::Agent:pool-34-thread-1] [BuildLoggerUpdateEventHandler] /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-SJ 2019-05-22 15:31:29,100 DEBUG [19-BAM::Agnt2::Agent:pool-34-thread-1] [BuildLoggerUpdateEventHandler] At revision 4
Over HTTP
2019-05-22 15:31:14,267 INFO [18-BAM::Agent3::Agent:pool-33-thread-1] [TaskExecutorImpl] REP-ST-JOB1-4: Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' 2019-05-22 15:31:14,270 INFO [18-BAM::Agent3::Agent:pool-33-thread-1] [VcsCheckoutTask] REP-ST-JOB1-4: Updating source code to revision: 4 2019-05-22 15:31:14,276 INFO [18-BAM::Agent3::Agent:pool-33-thread-1] [SvnWorkingCopyManager] REP-ST-JOB1-4: Working directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1' is empty. Checking out SVN URL 'http://svn.someserver.com/svn/svntest/trunk/feature' 2019-05-22 15:31:14,283 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] /var/atlassian/application-data/bamboo/. 2019-05-22 15:31:17,754 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1 2019-05-22 15:31:19,747 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] A /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/trunk 2019-05-22 15:31:19,768 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] A /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/trunk/feature 2019-05-22 15:31:19,852 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] U /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/trunk/feature/text.cs 2019-05-22 15:31:19,950 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] U /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/trunk/foo.txt 2019-05-22 15:31:20,001 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] U /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/trunk/bar.txt 2019-05-22 15:31:20,104 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] A /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/branches 2019-05-22 15:31:20,178 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] A /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1/tags 2019-05-22 15:31:20,252 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] /var/atlassian/application-data/bamboo/xml-data/build-dir/REP-ST-JOB1 2019-05-22 15:31:21,101 DEBUG [18-BAM::Agent3::Agent:pool-33-thread-1] [BuildLoggerUpdateEventHandler] At revision 4
Workaround
- Use only the HTTPS address while using the Source Code Checkout task.
Or
- Clone the repository using a script task instead of using the Source Code Checkout task.
[BAM-20440] Source Code Checkout Task will not work as expected if using SVN behind Apache proxy
Resolution | New: Low Engagement [ 10300 ] | |
Status | Original: Long Term Backlog [ 12073 ] | New: Closed [ 6 ] |
Labels | Original: bamboo-bugfix-kanban-candidate | New: bamboo-bugfix-kanban-candidate cleanup-seos-fy25 |
Status | Original: Gathering Impact [ 12072 ] | New: Long Term Backlog [ 12073 ] |
Status | Original: Needs Triage [ 10030 ] | New: Gathering Impact [ 12072 ] |
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 3204887 ] | New: JAC Bug Workflow v3 [ 3386206 ] |
Status | Original: Open [ 1 ] | New: Needs Triage [ 10030 ] |
Labels | New: bamboo-bugfix-kanban-candidate |
Component/s | New: Repository (Subversion) [ 11202 ] | |
Component/s | Original: Source Checkout Task [ 46093 ] | |
Occurrence Factor | New: 10% [ 12830 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Open [ 1 ] |
Support reference count | New: 1 |