buffer.uri / image.uri validator accepting non-relative uri only, and not resources served over http(s)
See original GitHub issueHi all,
Firstly, thank you very much for the plugin, it has made the workflow much much easier.
I was working with a project where binary resources easily adaptable to gltf format already exists and are served over https. After generating buffer.uri with values such as http://localhsot:3001/buffer
, the validator complains about NON_RELATIVE_URI.
Is it an anti-pattern to serve buffer uri/image uri over http(s)?
coincidentally, gltf previewer, babylon.js does not load the buffer.uri served over http, but threejs does.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Should all buffers with empty uri be treated as GLB buffers?
GLB format says that the buffer object with index 0 points to a GLB-stored binary part and should not have an URI. Looks...
Read more >Can't show Image in React Native - Stack Overflow
Hope the following solutions can help you - all can be used for Image. 1. HTTPS-Solution: Your picture is provided by an URI...
Read more >RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
1. Base URI Embedded in Content Within certain media types, a base URI for relative references can be embedded within the content itself...
Read more >Uniform Resource Identifier (URI): Generic Syntax - IETF
This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form, along with guidelines...
Read more >core - Apache HTTP Server Version 2.4
The default protocol names are https for port 443 and http for all other ports. ... This means that Apache httpd will serve...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not an anti-pattern per se, since the validator issues a warning, not an error. The reasoning is simple: not all clients will acquire external resources from URIs with explicit schemas (be it
http://
orfile://
), so such assets are less portable. Of course, application-specific use cases for absolute URIs are valid.As for babylon.js not loading resources over http, it may be an issue with VSCode plugin or Babylon.
/cc @emackey @bghgary
Babylon assumes urls are relative by default. It will not work with absolute urls without custom settings.