Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 431155

Summary: Readonly file widget: Reading a 1M+ file from gitHub fails with error.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 5.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2014-03-25 14:25:23 EDT
Found this issue when fixing bug 430884.
Clicking on a 1M+ js file returns error like below:

{
  "message": "This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size.",
  "documentation_url": "http://developer.github.com/v3/repos/contents/#get-contents",
  "errors": [
    {
      "resource": "Blob",
      "field": "data",
      "code": "too_large"
    }
  ]
}

I looked at the history of GitHubFileImpl.js. We had a fix for that before. It seems to me like a regression.(I am sure the same 1M+ file worked before. e.g. built-browse.js).
Another possibility: The gitHub API has been changed?
Comment 1 Simon Kaegi CLA 2014-06-26 16:27:15 EDT
Libing fixed this.