| Summary: | Orion does not render content from a remote location | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Pradyut Sarma <pradyutksarma> | ||||||||||
| Component: | Client | Assignee: | Project Inbox <orion.client-inbox> | ||||||||||
| Status: | RESOLVED INVALID | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | simon_kaegi | ||||||||||
| Version: | 0.3 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Pradyut Sarma
Created attachment 204903 [details]
content.json
Created attachment 204904 [details]
content.html
Created attachment 204905 [details]
crash results
Created attachment 204906 [details]
State of the Navigator just before the crash
Hi Pradyut, This is not a bug in the editor. The problem is that you've provided an incomplete implementation of "orion.core.file" service. In particular you're missing an implementation for read. The Orion client does not do XHRs itself to GET the content - that's the responsibility of the service implementation in the plugin. The reason that is the case is that because of the browsers single origin policy we would be restricting the location of content one server or else relying on something like CORS. Another problem is that we would be making an assumption on the implementation that is not universal. For example, I'm working on an implementation that uses the HTML5 FileSystem for offline. I'd suggest taking a look at plugins/filePlugin/webdavImpl.js in orion.client.core to fill in a more complete implementation. Hey Simon, Thanks for the tip. I will check this out immediately. Thanks and Regards, Pradyut. (In reply to comment #5) > Hi Pradyut, > > This is not a bug in the editor. The problem is that you've provided an > incomplete implementation of "orion.core.file" service. In particular you're > missing an implementation for read. > > The Orion client does not do XHRs itself to GET the content - that's the > responsibility of the service implementation in the plugin. The reason that is > the case is that because of the browsers single origin policy we would be > restricting the location of content one server or else relying on something > like CORS. Another problem is that we would be making an assumption on the > implementation that is not universal. For example, I'm working on an > implementation that uses the HTML5 FileSystem for offline. > > I'd suggest taking a look at plugins/filePlugin/webdavImpl.js in > orion.client.core to fill in a more complete implementation. |