RhodeCode - issues: Issueshttps://issues.rhodecode.com/https://issues.rhodecode.com/favicon.ico?16960560042020-07-02T19:24:39ZRhodeCode - issues
Redmine RhodeCode CE/EE - Bug #5626 (New): Whoosh full-text indexing is fully indexing all repos, not rec...https://issues.rhodecode.com/issues/56262020-07-02T19:24:39ZRussell Warren
<p>I just initiated whoosh fulltext indexing and I can see that it is fully indexing all commits in all repos, regardless of whether they are forks of an already-indexed repo.</p>
<p>If I'm correct on this, this is extremely inefficient. Whoosh should not need to index identical commits in forks.</p>
RhodeCode CE/EE - Bug #5588 (New): wrong rendering of issue tracker patternhttps://issues.rhodecode.com/issues/55882020-01-29T11:24:36ZOlivier Renaud
<p>Consider this issue tracker pattern rule:</p>
<p>Pattern: (?i)\b(?P(ABC|DEF)-\d+)\b<br>
Url: <a href="https://jira.mycompany.com/browse/${issue_id}" class="external">https://jira.mycompany.com/browse/${issue_id}</a></p>
<p>The pattern correctly matches "abc-123" and creates the correct link, but the text rendered is "abc-123abc".</p>
<p>It seems that the combination of a named group and an anonymous capturing group causes this problem. If I make the group non-capturable, it fixes the rendering:</p>
<p>Pattern: (?i)\b(?P(?:ABC|DEF)-\d+)\b<br>
Url: <a href="https://jira.mycompany.com/browse/${issue_id}" class="external">https://jira.mycompany.com/browse/${issue_id}</a></p>
RhodeCode CE/EE - Bug #5573 (Resolved): Wrong notification Base Url for Email-Integrationshttps://issues.rhodecode.com/issues/55732019-11-21T11:06:50ZAlessandro Ceglie
<p>Hello,<br>
since last update (4.17.4 CE) the base url in integration email notification has changed in </p>
<p>notification from RhodeCode. <strong><a href="http://rhodecode.local" class="external">http://rhodecode.local</a></strong></p>
<p>So in the email, the link to specific commits is something like:</p>
<p>http://<strong>rhodecode.local</strong>/[....]/changeset/1d7d6e009687c7317af54afbecf20a05ba5c87ae</p>
<p>I did not found any configuration about that searching in rhodecode.ini, system settings interface or even postgresql.</p>
<p>thanks.<br>
alessandro</p>
RhodeCode CE/EE - Bug #5522 (Resolved): vcsserver fails when url contains extra "/"https://issues.rhodecode.com/issues/55222018-12-23T14:18:27ZPaul Brand
<p>We use bitbake to build software for our products. Bitbake fetches the latest sourcecode from various repositories before it start to build software.<br>
Bitbake uses a receipes which tell bitbake what repository to use and how to build the url to access that repository.</p>
<p>Part of a receipe below:</p>
<pre><code>HGNAME = "repogroup/reponame"
SRC_URI = "hg://kvmech.kvernelandgroup.com/rhodecode/;protocol=http;scmdata=keep;module=${HGNAME}"
</code></pre>
<p>This would work with our previous rhodecode version (4.12.4)</p>
<p>Last week I updated to rhodecode 4.15 and the fetching of repositories did not work anymore. Bitbake reported:</p>
<pre><code>ERROR: Fetcher failure: Fetch command failed with exit code 255, output:
abort: HTTP Error 500: Internal Server Error
ERROR: Function failed: Fetcher failure for URL: 'hg://kvmech.kvernelandgroup.com/rhodecode/;protocol=http;scmdata=keep;module=repogroup/reponame'. Unable to fetch URL from any source.
</code></pre>
<p>The following error is from the vcssserver.log:</p>
<pre><code>2018-12-23 12:37:49.733 DEBUG [vcsserver.http_main] method called:localrepository with kwargs:{} context_uid: 7d80d0bf-d5c0-49a9-a104-3ef33f73fa5d
2018-12-23 12:37:49.733 DEBUG [dogpile.lock] NeedRegenerationException
2018-12-23 12:37:49.733 DEBUG [dogpile.lock] no value, waiting for create lock
2018-12-23 12:37:49.733 DEBUG [dogpile.lock] value creation lock <dogpile.cache.region._LockWrapper object at 0x7f3b1f84bc10> acquired
2018-12-23 12:37:49.734 DEBUG [dogpile.lock] Calling creation function for not-yet-present value
2018-12-23 12:37:49.736 DEBUG [dogpile.lock] Released creation lock
2018-12-23 12:37:49.736 INFO [vcsserver.tweens] IP: 127.0.0.1 Request to path: `/hg` time: 0.003s
2018-12-23 12:37:49.755 DEBUG [vcsserver.http_main] http-app: handling hg stream
2018-12-23 12:37:49.755 DEBUG [vcsserver.scm_app] Creating Mercurial WSGI application
2018-12-23 12:37:49.757 DEBUG [vcsserver.scm_app] hgrc file is not present at /repos/repogroup/reponame/.hg/hgrc, skipping...
2018-12-23 12:37:49.759 DEBUG [vcsserver.http_main] http-app: starting app handler with <vcsserver.scm_app.HgWeb object at 0x7f3b1cdd70d0> and process request
2018-12-23 12:37:49.790 DEBUG [vcsserver.lib.exc_tracking] Stored generated exception 139891865038592 as: /tmp/rc_exception_store_v1/139891865038592_vcsserver_1545565069.767842
2018-12-23 12:37:49.791 ERROR [vcsserver.http_main] error occurred handling this request for path: //repogroup/reponame,
tb: Traceback (most recent call last):
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/tweens.py", line 39, in excview_tween
response = handler(request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/router.py", line 156, in handle_request
view_name
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/view.py", line 642, in _call_view
response = view_callable(context, request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 410, in viewresult_to_response
result = view(context, request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/wsgi.py", line 37, in decorator
return request.get_response(wrapped)
File "/opt/rhodecode/store/rwjyfikqcf3lbm6gppji4q36fdh83dll-python2.7-webob-1.7.4/lib/python2.7/site-packages/webob/request.py", line 1327, in send
application, catch_exc_info=False)
File "/opt/rhodecode/store/rwjyfikqcf3lbm6gppji4q36fdh83dll-python2.7-webob-1.7.4/lib/python2.7/site-packages/webob/request.py", line 1291, in call_application
app_iter = application(self.environ, start_response)
File "/opt/rhodecode/store/hsq37yg96ril6xlifrvb030v290zbm6k-python2.7-rhodecode-vcsserver-4.15.0/lib/python2.7/site-packages/vcsserver/http_main.py", line 509, in _hg_stream
return app(environ, ResponseFilter(start_response))
File "/opt/rhodecode/store/hsq37yg96ril6xlifrvb030v290zbm6k-python2.7-rhodecode-vcsserver-4.15.0/lib/python2.7/site-packages/vcsserver/scm_app.py", line 77, in __call__
req = requestmod.parserequestfromenv(environ)
File "/opt/rhodecode/store/bhipby53csk71p07gsmi6q3p89qn6am3-python2.7-mercurial-4.6.2/lib/python2.7/site-packages/mercurial/hgweb/request.py", line 260, in parserequestfromenv
reponame))
ProgrammingError: PATH_INFO does not begin with repo name: //repogroup/reponame (repogroup/reponame)
</code></pre>
<p>It seems like bitbake generates an url with an extra "/" > "//repogroup/reponame"</p>
<p>I removed the trailing "/" from the bitbake receipe and everythong worked fine again:</p>
<pre><code>HGNAME = "repogroup/reponame"
SRC_URI = "hg://kvmech.kvernelandgroup.com/rhodecode;protocol=http;scmdata=keep;module=${HGNAME}"
</code></pre>
<p>It looks like rhodecode became more strict with url formatting. <br>
The problem is resolved with the change to the bitbake receipe but the behaviour of rhodecode definitely changed between 4.12 and 4.15.<br>
And i think a 404 error would be more appropriate instead of a 500 server error.</p>
RhodeCode CE/EE - Bug #5518 (Resolved): Zero-sized files in /rhodecode/config/rcextensions/exampleshttps://issues.rhodecode.com/issues/55182018-12-11T15:03:29ZAlexander Altynchurin
<p>There are two examples in rcextensions that have zero size</p>
<p><a href="https://code.rhodecode.com/rhodecode-enterprise-ce/files/fd4b2bf5348f1def66ac9495be06eac1e60f8fae/rhodecode/config/rcextensions/examples" class="external">https://code.rhodecode.com/rhodecode-enterprise-ce/files/fd4b2bf5348f1def66ac9495be06eac1e60f8fae/rhodecode/config/rcextensions/examples</a></p>
RhodeCode CE/EE - Bug #5506 (New): Web UI fonts are not looking good and is difficult to read for...https://issues.rhodecode.com/issues/55062018-10-26T01:39:43ZArun Chandrasekaran
<p>RC Web UI fonts are not looking that good. The current font family is ""proximanovaregular","Proxima Nova Regular","Proxima Nova",sans-serif". The font size is too small as well (by default). Too much space is wasted on the UI.</p>
<p>GitHub/GitLab/Kallithea fonts look much better and the UI space appears to be well utilized in Kallithea.</p>
RhodeCode CE/EE - Bug #5492 (New): VCSServer + SVN 1.10https://issues.rhodecode.com/issues/54922018-07-26T14:39:36ZT0m Cat
<p>Hi everybody,</p>
<p>just came across this issue:<br>
In a fresh installed most recent rhodecode instance we copied an existing SVN Repository, which was created with the current SVN Version 1.10. Afterwards we used "Remap and Rescan" in Rhodecode Web GUI to scan for the new repository, but the Web GUI said, that there was no repository added.</p>
<p>A look in the vcsserver.log shows the problem:</p>
<pre><code>2018-07-26 14:03:09.113 DEBUG [vcsserver.svn] Invalid Subversion path `/data/rhodecode-repos/webapps`, tb: Traceback (most recent call last):
File "/opt/rhodecode/store/gnc8qsvvbylarxkxsyvinisv80khd8rk-python2.7-rhodecode-vcsserver-4.12.4/lib/python2.7/site-packages/vcsserver/svn.py", line 150, in is_path_valid_repository
svn.repos.open(path)
File "/opt/rhodecode/store/glkwj7av6pjjnsxvq7ykdhwid6pqbl8m-subversion-1.9.7/lib/python2.7/site-packages/libsvn/repos.py", line 232, in svn_repos_open
return _repos.svn_repos_open(*args)
SubversionException: 160043 - Expected FS format between '1' and '7'; found format '8'
2018-07-26 14:03:09.113 INFO [vcsserver.tweens] IP: 127.0.0.1 Request to path: `/svn` time: 0.001s
[26/Jul/2018:14:03:09 +0200] GNCRN <3554> 127.0.0.1 rqt:0.000949 200 51 "POST:/svn " usr:- "-" "PycURL/7.19.5 libcurl/7.50.3 OpenSSL/1.0.2h zlib/1.2.8 libssh2/1.7.0 nghttp2/1.7.1"
2018-07-26 14:03:09.116 DEBUG [vcsserver.http_main] method called:is_path_valid_repository with kwargs:{}
2018-07-26 14:03:09.116 INFO [vcsserver.tweens] IP: 127.0.0.1 Request to path: `/svn` time: 0.000s
[26/Jul/2018:14:03:09 +0200] GNCRN <3554> 127.0.0.1 rqt:0.000536 200 51 "POST:/svn " usr:- "-" "PycURL/7.19.5 libcurl/7.50.3 OpenSSL/1.0.2h zlib/1.2.8 libssh2/1.7.0 nghttp2/1.7.1"
2018-07-26 14:03:09.119 DEBUG [vcsserver.http_main] method called:is_path_valid_repository with kwargs:{}
2018-07-26 14:03:09.119 DEBUG [vcsserver.svn] Invalid Subversion path `/data/rhodecode-repos/webapps/db`, tb: Traceback (most recent call last):
File "/opt/rhodecode/store/gnc8qsvvbylarxkxsyvinisv80khd8rk-python2.7-rhodecode-vcsserver-4.12.4/lib/python2.7/site-packages/vcsserver/svn.py", line 150, in is_path_valid_repository
svn.repos.open(path)
File "/opt/rhodecode/store/glkwj7av6pjjnsxvq7ykdhwid6pqbl8m-subversion-1.9.7/lib/python2.7/site-packages/libsvn/repos.py", line 232, in svn_repos_open
return _repos.svn_repos_open(*args)
SubversionException: 165005 - Expected repository format '3' or '5'; found format '8'
</code></pre>
<p>These are the rhodecode versions:</p>
<pre><code>RHODECODE CONTROL VERSION: 1.18.0
- NAME: community-1
- STATUS: RUNNING
logs:/root/.rccontrol/community-1/community.log
- VERSION: 4.12.4 Community
- VCS: vcsserver-1
- URL: http://127.0.0.1:10020
- CONFIG: /root/.rccontrol/community-1/rhodecode.ini
- NAME: vcsserver-1
- STATUS: RUNNING
logs:/root/.rccontrol/vcsserver-1/vcsserver.log
- VERSION: 4.12.4 VCSServer
- URL: http://127.0.0.1:10010
- CONFIG: /root/.rccontrol/vcsserver-1/vcsserver.ini
</code></pre>
<p>rcconctrol upgrade '*' sais there are no newer version available.</p>
<p>So is it right, that rhodecode currently doesn't support SVN 1.10 Repos? Are there any plans for that?</p>
<p>Thx in advance!<br>
T0mcat</p>
RhodeCode CE/EE - Bug #5471 (New): Webhook integration failing: need more than 3 values to unpackhttps://issues.rhodecode.com/issues/54712018-06-01T01:02:05ZMichael Davis
<p>After updating from 4.11.5 to 4.12.2, our webhook integrations seem to be failing somewhere before RhodeCode actually makes the web request.</p>
<p>I couldn't find anything in any of the log files explaining what was happening, but the rhodecode_celery.log file indicated that the webhooks were going through celery. I was able to get the following error log by running <code>profile/bin/celery events --app rhodecode.lib.celerylib.loader --ini ./rhodecode.ini -d</code> from the ~/.rccontrol/enterprise-1 directory while triggering a webhook (sensitive details have been edited):</p>
<pre><code>celery@rhodecode [2018-05-31 22:48:03.376921] task failed: rhodecode.integrations.types.webhook.post_to_webhook(c89cc6e8-e065-44ea-9d35-52c1e6ae3216) args=([('http://our.webhook.url/', {...}, {...})], {'password': '', 'custom_header_val': '', 'events': ['pullrequest-merge', 'pullrequest-create', 'repo-push', 'pullrequest-close', 'repo-create', 'pullrequest-review', 'pullrequest-comment', 'pullrequest-update'], 'url': 'http://our.webhook.url/', 'secret_token': '', 'method_type': 'post', 'custom_header_key': '', 'username': ''}) kwargs={} clock=8026579, exception=ValueError('need more than 3 values to unpack',), local_received=1527806883.38, pid=7057, traceback=Traceback (most recent call last):
File "/opt/rhodecode/store/xbrm874sqm0iqz8cww1vy98l7br2bh7b-python2.7-celery-4.1.0/lib/python2.7/site-packages/celery/app/trace.py", line 374, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/rhodecode/store/hrv1v1186rjwls7qbb8c3h45dv9n1frd-python2.7-rhodecode-enterprise-ce-4.11.5/lib/python2.7/site-packages/rhodecode/lib/celerylib/loader.py", line 294, in __call__
return super(RequestContextTask, self).__call__(*args, **kwargs)
File "/opt/rhodecode/store/xbrm874sqm0iqz8cww1vy98l7br2bh7b-python2.7-celery-4.1.0/lib/python2.7/site-packages/celery/app/trace.py", line 629, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/rhodecode/store/hrv1v1186rjwls7qbb8c3h45dv9n1frd-python2.7-rhodecode-enterprise-ce-4.11.5/lib/python2.7/site-packages/rhodecode/integrations/types/webhook.py", line 373, in post_to_webhook
for url, token, headers, data in url_calls:
ValueError: need more than 3 values to unpack
, utcoffset=5
</code></pre> RhodeCode CE/EE - Bug #5414 (New): When Opening New Pull Request, Target Revision Default Is Unde...https://issues.rhodecode.com/issues/54142018-01-12T22:28:55ZPeter Rebholz
<p>Version Info:</p>
<p>RhodeCode 4.10.6 Enterprise Edition<br>
CentOS 7<br>
PostgreSQL 10.1</p>
<p>Issue:</p>
<p>We're testing out upgrading to 4.10.6 from a fairly old version and hit a snag that is going to keep us from upgrading. When opening a new pull request for a Hg repository, initiated from the Changelog screen, the default target revision is particularly poor for our workflow/use case. We're seeing it default to the <code>default</code> branch or, in repositories where the <code>default</code> branch is closed, the very first revision of the repository. It takes a really long time for RhodeCode to count every commit from the beginning of time to the present and further, if you change the branch while it's working, you get a browser alert dialog (see attached).</p>
<p>This has a significant impact on our workflow as every user is going to hit this every time they try and open a pull request. We use bookmarks as the source revision for pull requests so and are usually requesting things be merged into the same branch, thus the best default <u>for us</u> would be the same branch. However, having no default would be preferable to the wrong default and a long processing time + error pop-up.</p>
<p>The only workaround I have found is initiating the pull request from the pull requests page and setting the target revision <u>before</u> setting the source revision. This isn't a great work around.</p>
RhodeCode CE/EE - Bug #5412 (Resolved): Webhook for "pullrequest commented" event returns incompl...https://issues.rhodecode.com/issues/54122018-01-04T10:54:58ZRishipuri Bharatpuri
<p>If there is a new pull request comment along with a status change, webhook returns the status as null instead of the actual status with the comment.</p>
<p>Here is the part of data returned:</p>
<pre><code> comment: {
permalink_url: "https://rhodecode/_admin/pull-request/999#comment-6666",
line: null,
type: "note",
status: null,
text: "test test",
file: null,
url: "https://rhodecode/_admin/pull-request/999#comment-6666"
},
</code></pre> RhodeCode CE/EE - Bug #5210 (Resolved): webook problemshttps://issues.rhodecode.com/issues/52102017-02-13T10:08:58ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>i create webhook with url: http://:@/job//buildWithParameters?token=&rc_pullid=${pull_request_id}</p>
<p>[10:03]<br><br>
event: pullrequest created</p>
<p>[10:03]<br><br>
if i create pull request from web interface - all ok: jenkins started build</p>
<p>[10:04]<br><br>
if i create pull request from api method create_pull_request - i get error</p>
<p>[10:04]<br><br>
2017-02-13 15:29:32.214 ERROR [rhodecode.integrations] failure occured when sending event to integration ")><br>
Traceback (most recent call last):<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/integrations/<strong>init</strong>.py", line 54, in integrations_event_handler<br>
integration_model.send_event(integration, event)<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/model/integration.py", line 99, in send_event<br>
handler.send_event(event)<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/integrations/types/webhook.py", line 233, in send_event<br>
data = event.as_dict()<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/pullrequest.py", line 38, in as_dict<br>
data = super(PullRequestEvent, self).as_dict()<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/repo.py", line 118, in as_dict<br>
data = super(RepoEvent, self).as_dict()<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/base.py", line 63, in as_dict<br>
'actor_ip': self.actor_ip,<br>
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/base.py", line 49, in actor_ip<br>
return self.request.user.ip_addr<br>
AttributeError: 'Request' object has no attribute 'user'</p>
RhodeCode CE/EE - Bug #4247 (Resolved): [vcs] Using current time as timestamp during archive crea...https://issues.rhodecode.com/issues/42472016-09-27T16:55:41ZMartin Bornholdmartin@rhodecode.com
<p>Our code uses the current time as modification timestamp when creating repository archives. This leads to different hash values (e.g. md5sum) of the created archive files although no code was changes. This is the reason why we had to chenge the hash of rhodecode-tools repository several times.</p>
RhodeCode CE/EE - Support #4227 (Resolved): VBScript files detected as text/plain - no syntax hig...https://issues.rhodecode.com/issues/42272016-09-14T17:05:22ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>[tenderapp] report: <a href="https://rhodecode.tenderapp.com/help/discussions/problems/9610" class="external">https://rhodecode.tenderapp.com/help/discussions/problems/9610</a> reported</p>
<p>I have a project with VBScript files that are detected by RhodeCode as text/plain MIME types. CodeMirror is supposed to support this. The files are named *.vbs.</p>
<p>Other file types so far are detected correctly and show syntax highlighting.</p>
RhodeCode CE/EE - Feature #3977 (New): Wikihttps://issues.rhodecode.com/issues/39772016-06-05T21:11:47Ztomekj2ee tomekj2ee
<p>Include wiki pages like Gitlab.</p>
Documentation - Task #737 (New): What is an extra field and how do you add it?https://issues.rhodecode.com/issues/7372015-01-14T13:57:54ZLisa Quatmannlisa@rhodecode.com
<p>Ok, I know the answer to the first part but regular users may not. If you don't have any extra fields, then when you go to the page where you would edit them, you get a message which says "Extra fields are disabled". However, it has no information on how to enable them if one is able to do that.</p>