Content-Length header incorrect for deployed site files (OD-1378)
Released
Ben Cooper opened 12 months ago

When fetching a page that has been deployed to ~site by a CI build the Content-Length header in the HTML response is incorrect, which causes curl and other HTTP clients to exit with an error.

Example: The repo at https://code.onedev.io/bengcooper/site_publish_test contains a file index.html which is published by CI.

If you view the site via a browser it displays correctly, but if you fetch the URL via curl, the following error is displayed:

$ curl https://code.onedev.io/bengcooper/site_publish_test/~site/index.html

<!doctype html>
<html>
...
</html>
curl: (18) transfer closed with 1684174779372 bytes remaining to read
OneDev changed state to 'Closed' 12 months ago
Previous Value Current Value
Open
Closed
OneDev commented 12 months ago

State changed as code fixing the issue is committed (c87338b5)

OneDev changed state to 'Released' 12 months ago
Previous Value Current Value
Closed
Released
OneDev commented 12 months ago

State changed as build #3644 is successful

Ben Cooper commented 12 months ago

Thanks for fixing that so quickly! The support from OneDev is absolutely amazing.

Robin Shen commented 12 months ago

Please upgrade to 8.2.5 instead as 8.2.4 introduced a bug causing NPE when create new project

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
8.2.3
Issue Votes (0)
Watchers (4)
Reference
OD-1378
Please wait...
Page is in error, reload to recover