jbauer opened 2 weeks ago
|
|||||
For issue 1, a bug is filed: #1856 For issue 2, I can not get it reproduced. Please create a project demonstrating this. |
|||||
With regard to 2: I did the following so far:
So it seems to be a pure OneDev problem. However I cannot reproduce it manually here in your installation using the OneDev UI. But I can reproduce it using the PR branch in my installation. The container runs with locale So no idea how to figure it out, except copying everything and run OneDev from the IDE with breakpoints. |
|||||
@robin I noticed in my installation the file in question is treated by OneDev as ISO 8859-1 encoded file, even though So for some reason in the PR in question OneDev uses the file of the PR base commit in UTF-8 encoding (because in the image above the How does OneDev detect the file encoding? Is that a setting somewhere? As said before all developer tools and JDK of OneDev container itself use UTF-8 encoding. |
|||||
Please reproduce this with a test OneDev set up, and attach the database and site/projects folder. |
|||||
@robin After looking at your server code the reason is actually relatively simple. See description and code diff (the very last line in the diff): https://code.onedev.io/jbauer/~pulls/3 |
|||||
Thanks for the info. Will be fixed in next patch release. |
|||||
Robin Shen changed state to 'Closed' 6 days ago
|
Type |
Question
|
Priority |
Normal
|
Assignee | |
Labels |
No labels
|
After upgrading to 10.4.0 I noticed two strange code diff behaviors in our pull requests.
Maybe some libraries or Java version has been updated in OneDev server docker container that cause this?