Content-Length header incorrect for deployed site files (OD-1378)
Ben Cooper opened 3 years 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' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 3 years ago

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

  • OneDev changed state to 'Released' 3 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 3 years ago

    State changed as build #3644 is successful

  • Ben Cooper commented 3 years ago

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

  • Robin Shen commented 3 years ago

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

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