issue in 5.0.4 - 500 Error Create review from Mercurial repository

已查看 16 次
跳至第一个未读帖子

Astro Jetson

未读,
2023年5月3日 16:55:562023/5/3
收件人 Review Board Community
Hi,

We are seeing a 500 Error when on the "New Review Request" page after selecting any repository.  Our Mercurial servers are 3.8.3, served with apache + wsgi and hgserve.  The URLs for our repos are always http://.  

The error is: string indices must be integers. Error dump is attached.

rbrd01-500-CreateReview.png
rbrd01-500-CreateReview.txt

Christian Hammond

未读,
2023年5月4日 01:20:422023/5/4
收件人 revie...@googlegroups.com
Looks like the JSON endpoint Review Board is trying to hit on the Mercurial server is returning some raw string and not JSON data.

Check the configured URL for that repository, and then go to the following url:

    https://<repository url>/json-log/

See what that shows. If you get something that looks like JSON data, try:

    https://<repository url>/json-log/?rev=ancestors(9436e8d540ab26ab7f95a93731829ab2b5f55b83)+and+branch(default)

That's the URL that Review Board most likely tried to hit that returned the bad data.

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/bf54ae35-19c6-45e4-bf60-d64fe61963f8n%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Astro Jetson

未读,
2023年5月8日 17:56:182023/5/8
收件人 Review Board Community
Thanks Christain,

And that bad data would be:  "not yet implemented".

It looks like reviewboard 5.0.4 is using an end point introduced after our admittedly very out-of-date 3.8.3 Mercurial repos.

I found this bug report: https://hellosplat.com/s/beanbag/tickets/4524/, which seems to indicate the issue is addressed. The changes are reviewed here: https://reviews.reviewboard.org/r/8778/diff/4/ These were released in rb 2.5.x

it looks like the code in hg.py is looking for 'not yet implemented'  instead of  '"not yet implemented"' in _get_http_json.

The bug report is about versions < Mercurial 3.9. Will upgrading past 3.9.x address this issue?

Christian Hammond

未读,
2023年5月8日 20:24:532023/5/8
收件人 revie...@googlegroups.com
Hi,

Yep, upgrading Mercurial should address it. I don't recall if there's optional support that needs to be added to Mercurial to enable that endpoint, but that's why you're not seeing the commit browsing turn up.

The string we look for was correct on the versions we initially tested, but it may not have been comprehensive. We can update that to look for variations for sure, and get that into 5.0.5.

Christian

回复全部
回复作者
转发
0 个新帖子