RhodeCode - issues: Issueshttps://issues.rhodecode.com/https://issues.rhodecode.com/favicon.ico?16960560042023-12-07T08:05:26ZRhodeCode - issues
Redmine RhodeCode CE/EE - Task #5711 (Resolved): svn: make the SSL detection work better.https://issues.rhodecode.com/issues/57112023-12-07T08:05:26ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>as per discussion here: <a href="https://community.rhodecode.com/t/svn-cant-move-a-file-http-502-bad-gateway/535/13" class="external">https://community.rhodecode.com/t/svn-cant-move-a-file-http-502-bad-gateway/535/13</a></p>
<p>check if the downgrade header can be there always to support http+https traffic</p>
RhodeCode CE/EE - Task #5701 (Resolved): Default permissions cache purgehttps://issues.rhodecode.com/issues/57012023-11-06T07:17:38ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>It looks like the cache purging for global default permissions aren't pushed once the override function is set.</p>
<p>make sure the flush permissions caches once this is enable. Probably we need to rebuild the full set up permissions in order for this to work</p>
RhodeCode Control - Feature #5582 (New): Add the version number of a PR in the HTTP APIhttps://issues.rhodecode.com/issues/55822020-01-15T10:45:22ZOlivier Renaud
<p>The JSON response of <code>get_pull_request</code> does not include the version number of the pull request (the one that gets incremented when a PR is updated with new commits). It would be a useful information to report in my use case (writing a bot that acts as a PR reviewer for TeamCity builds).</p>
<p>Using the Python api, I can find the version number with this code, but there is no workaround when working with the HTTP API.</p>
<pre><code class="python syntaxhl" data-language="python"><span class="n">pr</span> <span class="o">=</span> <span class="n">PullRequest</span><span class="p">.</span><span class="n">get</span><span class="p">(</span><span class="n">pr_id</span><span class="p">)</span>
<span class="n">pr_version</span> <span class="o">=</span> <span class="n">pr</span><span class="p">.</span><span class="n">versions</span><span class="p">.</span><span class="n">count</span><span class="p">()</span> <span class="o">+</span> <span class="mi">1</span>
</code></pre> RhodeCode CE/EE - Task #5537 (Resolved): Add owner to create_pull_request APIhttps://issues.rhodecode.com/issues/55372019-02-13T10:44:04ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>Similar like:<br>
<a href="https://code.rhodecode.com/rhodecode-enterprise-ce/files/fd4b2bf5348f1def66ac9495be06eac1e60f8fae/rhodecode/api/views/repo_api.py#L562" class="external">https://code.rhodecode.com/rhodecode-enterprise-ce/files/fd4b2bf5348f1def66ac9495be06eac1e60f8fae/rhodecode/api/views/repo_api.py#L562</a><br>
<a href="https://code.rhodecode.com/rhodecode-enterprise-ce/files/fd4b2bf5348f1def66ac9495be06eac1e60f8fae/rhodecode/api/views/repo_api.py#L640" class="external">https://code.rhodecode.com/rhodecode-enterprise-ce/files/fd4b2bf5348f1def66ac9495be06eac1e60f8fae/rhodecode/api/views/repo_api.py#L640</a></p>
<p>We should expose this to create_pull_request.</p>
<p>ps. We should maybe check all other API functions and make this type of functionality consistent across all create_ type function</p>
RhodeCode Control - Bug #5535 (New): improper rollback on upgrade failurehttps://issues.rhodecode.com/issues/55352019-02-09T21:12:54ZCatalin Salgau
<p>Behaviour probably not strictly related to version, but for context. (I accept that those old versions are no longer supported.)<br>
Migrating a 2.1.0 instance to 2.2.8 hit an error relating to a package rename (pkg_resources.DistributionNotFound: rhodecodemomentum) and attempted rollback.<br>
<em>instancename/profile</em> symlink was rolled back, but not the rhodecode.ini file, resulting in the app egg still pointing to egg:rhodecodemomentum and the instance failing to restart.<br>
Manually renaming rhodecode.backup_2.1.0.ini back fixed the issue.</p>
RhodeCode Control - Feature #5534 (New): extract/preload subcommandhttps://issues.rhodecode.com/issues/55342019-02-09T20:22:48ZCatalin Salgau
<p>Per documentation, restoring an instance involves creating a new instance and replacing files.<br>
Assuming one is restoring their entire ~/.rccontrol folder, the issue, as I see it, comes down to not having the required files expanded under the NIX store, as symlinked from <em>instancename/profile</em>.<br>
I'd like to suggest an <em>rccontrol extract</em> command that downloads (if not in cache/offline) and extracts the proper files on restore/upgrade, without the intermediary new instance step.<br>
This would also simplify cleanup of the nix store on live instances.</p>
RhodeCode Control - Feature #5533 (In Progress): Support busybox tarhttps://issues.rhodecode.com/issues/55332019-02-09T19:51:04ZCatalin Salgau
<p>Busybox tar does not handle --usage(as GNU tar does).<br>
Switching rccontrol from </p>
<pre><code> local_command("tar", '--usage')
</code></pre>
<p>to</p>
<pre><code> local_command("tar", '--help')
</code></pre>
<p>yields the same effect while being more inclusive.</p>
RhodeCode Tools - Bug #5531 (New): rhodecode-index: default cli opts overwrite given mapping filehttps://issues.rhodecode.com/issues/55312019-02-08T16:34:36ZPeter Colledge
<p>For example, if I provide a mapping file with</p>
<pre><code>[__DEFAULT__]
repo_limit = 1
</code></pre>
<p>I still get an unlimited limit, which is the default CLI param, until I explicitly use the CLI param <code>rhodecode-index... --repo-limit 1</code></p>
<p>See parse_opts in rhodecode_tools/commands/index.py </p>
<p>Version 756dd5c2d0b6 (v1.1.0) of cloned+venv'ed rhodecode-tools-ce.</p>
RhodeCode Control - Bug #5501 (New): rccontrol throwing rccontrol.lib.exceptions.SupervisorFailed...https://issues.rhodecode.com/issues/55012018-10-12T14:37:19Zdan m
<p>Attempting to run any command that invokes supervisord gives me the following STE:</p>
<p>$ rccontrol status community-1<br>
RHODECODE CONTROL VERSION: 1.19.2<br>
Starting supervisord.<br>
Traceback (most recent call last):<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/bin/.supervisord-wrapped", line 12, in <br>
sys.exit(main())<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/supervisord.py", line 357, in main<br>
go(options)<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/supervisord.py", line 367, in go<br>
d.main()<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/supervisord.py", line 67, in main<br>
self.options.set_rlimits_or_exit()<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/options.py", line 1398, in set_rlimits_or_exit<br>
soft, hard = resource.getrlimit(res)<br>
resource.error: (38, 'Function not implemented')<br>
Supervisord did not start properly.<br>
Traceback (most recent call last):<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/bin/..rccontrol-wrapped-wrapped", line 12, in <br>
sys.exit(cmd())<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/main.py", line 54, in cmd<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 716, in <strong>call</strong><br>
return self.main(*args, **kwargs)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 696, in main<br>
rv = self.invoke(ctx)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 1060, in invoke<br>
return _process_result(sub_ctx.command.invoke(sub_ctx))<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 889, in invoke<br>
return ctx.invoke(self.callback, **ctx.params)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 534, in invoke<br>
return callback(*args, **kwargs)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func<br>
return ctx.invoke(f, obj, *args[1:], **kwargs)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 534, in invoke<br>
return callback(*args, **kwargs)<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/status.py", line 21, in cmd<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/utils.py", line 431, in wrapper<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/status.py", line 34, in main<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1951, in status<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1059, in get_process_status<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1049, in get_process_info<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1326, in xmlrpc<br>
rccontrol.lib.exceptions.SupervisorFailedToStart</p>
<p>RC version: 1.19.2<br>
What's installed: 1 CE instance, 1 VCSServer instance<br>
OS: CentOs 6.10 (updates current up to the past week or so)</p>
<p>Comments to follow</p>
RhodeCode Tools - Bug #5450 (New): rhodecode-api get_license_info no longer workshttps://issues.rhodecode.com/issues/54502018-03-19T18:16:55ZGildas Fargeasgildas.fargeas@nerd.nintendo.com
<p>I just noticed that but it seems the method get_license_info no longer works in the api.<br>
I get the same error using either a curl request or rhodecode-api bin. I also checked get_users and it works fine.<br>
Can you reproduce this error ?</p>
<pre><code>ERROR: Backend server at `http://127.0.0.1:10002/_admin/api` returned non 2XX http code (500). Please make sure it is running and accepting connections. Original response: <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Error - 500 Internal Server Error</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index, nofollow"/>
<link rel="icon" href="/_static/rhodecode/images/favicon.ico" sizes="16x16 32x32" type="image/png" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/_static/rhodecode/css/style.css" media="screen"/>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/_static/rhodecode/css/ie.css" media="screen"/>
<![endif]-->
<style>body { background:#eeeeee; }</style>
<script type="text/javascript">
// register templateContext to pass template variables to JS
var templateContext = {timeago: {}};
</script>
<script type="text/javascript" src="/_static/rhodecode/js/scripts.js"></script>
</head>
<body>
<div class="wrapper error_page">
<div class="sidebar">
<a href="/"><img class="error-page-logo" src="/_static/rhodecode/images/RhodeCode_Logo_Black.png" alt="RhodeCode"/></a>
</div>
<div class="main-content">
<h1>
<span class="error-branding">
RhodeCode
</span><br/>
500 Internal Server Error | <span class="error_message">The server has either erred or is incapable of performing the requested operation.</span>
</h1>
<div class="inner-column">
<h4>Possible Causes</h4>
<ul>
<li>Server is overloaded.</li>
<li>Server database connection is lost.</li>
<li>Server expected unhandled error.</li>
</ul>
</div>
<div class="inner-column">
<h4>Support</h4>
<p>For support, go to <a href="https://rhodecode.com/help/" target="_blank">Support</a>.
It may be useful to include your log file; see the log file locations <a href="https://rhodecode.com/r1/enterprise/docs/admin-system-overview/">here</a>.
</p>
</div>
<div class="inner-column">
<h4>Documentation</h4>
<p>For more information, see <a href="https://rhodecode.com/r1/enterprise/docs/">docs.rhodecode.com</a>.</p>
</div>
</div>
</div>
</body>
</html>
None
</code></pre> RhodeCode CE/EE - Task #5391 (Resolved): Secure Email changehttps://issues.rhodecode.com/issues/53912017-09-21T17:12:54ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<ul>
<li>add email requires a password</li>
<li>email is to be selected from the list instead of entered.</li>
<li>allows easier discovery of extra email addresses</li>
</ul>
RhodeCode CE/EE - Task #5386 (Resolved): Increase security for Email Changehttps://issues.rhodecode.com/issues/53862017-09-13T10:34:51ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>We already require OLD password when changing the current user password, but email is another way to recover an account. If hacker is able to access open instance of RC he can trigger an email change and change the password after that.<br>
Proposed idea to fix this is:</p>
<ul>
<li>Make email a select field instead of text input</li>
<li>Inside the input we allow user to pick any of the addresses added via extra emails</li>
<li>In order to change an email user needs to add a new email from additional emails, this needs to require a password, and then he can select a new email from the entry.</li>
</ul>
<p>THis should force users to give current password to change the email</p>
RhodeCode CE/EE - Task #4251 (Feedback): [customer] Pull request with subreposhttps://issues.rhodecode.com/issues/42512016-09-29T13:41:00ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>While a lot of time passed since we’ve exchanged emails last time, let me share some details about the way we work at R and what kind of Rhodecode improvements would be useful for us. </p>
<ul>
<li>Most of our iOS/Mac product repositories are Mercurial </li>
<li>We extensively use Mercurial’s subrepositories for internal dependencies: our internal libraries are Mercurial or git repositories, which are added to product repository as a subrepo. </li>
<li>I like github flow: creating feature branches (bookmarks in Mercurial), opening pull request to master (default), code-reviewing this pull request and merging it after review is finished</li>
</ul>
<p>Unfortunately Rhodecode does not allow to create pull request for Mercurial repository in case it contains any subrepo, even if there were no changes in that sub-repositories. </p>
<p>So that’s the main reason why we can’t use github flow with Rhodecode and that’s the reason why we have to Crucible. </p>
<p>I’ve shared these details with team about a year ago : <a href="https://rhodecode.tenderapp.com/help/discussions/support-tickets/1234-unable-to-create-pull-request" class="external">https://rhodecode.tenderapp.com/help/discussions/support-tickets/1234-unable-to-create-pull-request</a></p>
<p>Currently Rhodecode is more like a repository storage for us and while post-commit reviews are possible they are rarely used. That’s why most people at R almost never see Rhodecode web interface. </p>
<p>Let me know if you need any more details or have any workaround that would still allow us to use pull requests. </p>
RhodeCode CE/EE - Task #3454 (Feedback): [ce/ee] visually differentiate the two editionshttps://issues.rhodecode.com/issues/34542016-04-07T15:38:27ZOliver Strobeloliver@rhodecode.com
<p>Currently we are only changing the footer to include Community vs. Enterprise differentiation.</p>
<p>Purpose: It should be possible to tell the difference in edition quickly when switching between CE/EE tabs.</p>
<p>Potential solutions:<br>
1) Add the edition name into the header after the logo on the top left<br>
2) Change the colour of the header between editions, eg.<br>
CE = dark grey<br>
EE = black</p>
<p>Thoughts?</p>
RhodeCode Tools - Task #3333 (New): Create rhodecode-tools backup command for backup of RhodeCode...https://issues.rhodecode.com/issues/33332016-03-17T12:43:52ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>We should create a backup command that allows to backup instances.</p>
<ul>
<li>needs to be atomic for repositories so we don't catch a push in progress operation</li>
<li>needs to identify all required files to backup including configs, extra hooks, gists, databases etc</li>
</ul>