You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "ebner (via GitHub)" <gi...@apache.org> on 2024/12/09 21:03:11 UTC

[I] Fuseki UI should not use absolute paths to load resources [jena]

ebner opened a new issue, #2889:
URL: https://github.com/apache/jena/issues/2889

   ### Version
   
   5.2.0
   
   ### Question
   
   The file `webapp/index.html` references all resources using absolute paths, which prevents the use of the UI through a reverse proxy at a different path.
   
   Let's assume that the UI is supposed to be served by a reverse proxy at the address `https://<host>/fuseki/`. All requests against `/fuseki/*` are proxied to `http://localhost:3030` which is a container serving Fuseki. The `index.html` references `./static/index-DRoCyVBH.js` and `./static/index-d9omhX6e.css`, which resolve into `https://<host>/static/index-DRoCyVBH.js` and `https://<host>/static/index-d9omhX6e.css`, respectively.
   
   If the index file just omitted `./` in the beginning of the src/href then everything would be loaded relative to the path of the index file.
   
   Is there anything that speaks against such a change?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Fuseki UI should not use absolute paths to load resources [jena]

Posted by "ebner (via GitHub)" <gi...@apache.org>.
ebner closed issue #2889: Fuseki UI should not use absolute paths to load resources
URL: https://github.com/apache/jena/issues/2889


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Fuseki UI should not use absolute paths to load resources [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2889:
URL: https://github.com/apache/jena/issues/2889#issuecomment-2534399991

   @ebner Glad to hear your system is now working!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Fuseki UI should not use absolute paths to load resources [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2889:
URL: https://github.com/apache/jena/issues/2889#issuecomment-2532274081

   I'm a bit about what is happening.
   
   Isn't `./...` being resolved in the browser? Or is Vue getting in the way?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Fuseki UI should not use absolute paths to load resources [jena]

Posted by "ebner (via GitHub)" <gi...@apache.org>.
ebner commented on issue #2889:
URL: https://github.com/apache/jena/issues/2889#issuecomment-2532789592

   OK, so I just threw together a `docker-compose.yml` for a small PoC to demonstrate the behavior, when I noticed that the problem was a missing slash in the Apache configuration (there should have been a `/` after fuseki):
   
   ```
   RewriteRule ^/fuseki(.*)$ http://localhost:3030/$1 [P]
   ```
   
   This led to the HTML file being served from a URL without trailing slash, which was not considered to be a folder by the browser. The relative paths `./something` resolved to a path one level to high. Changing to a relative path without `./` in the beginning would not have made a difference.
   
   Sorry for the noise!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org