qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-874) unable to load .json or .woff2 files from local file system from http port
Date Mon, 04 Dec 2017 20:47:00 GMT

    [ https://issues.apache.org/jira/browse/DISPATCH-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16277465#comment-16277465

ASF subversion and git services commented on DISPATCH-874:

Commit 611f8b70628d65067129a639e8df693ecde8244a in qpid-dispatch's branch refs/heads/master
from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=611f8b7 ]

DISPATCH-874: allow .json and .woff2 files to be served by console.

Added .json and .woff2 mime-types to the recognized list.
Added a default rule to serve unrecognized files as "application/octet-stream"

New file types required by the console should be added explicitly as browsers
may restrict what can be done with application/octet-stream files.

> unable to load .json or .woff2 files from local file system from http port
> --------------------------------------------------------------------------
>                 Key: DISPATCH-874
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-874
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Container
>    Affects Versions: 0.8.0, 1.0.0
>            Reporter: Ernest Allen
>            Assignee: Alan Conway
> When serving the console from a router with a listener that has http: true, files with
extensions of .json and .woff2 fail to load.
> To reproduce:
> - setup a router with an http listener (ie. on port 5673)
> - load the console from a browser using that port (localhost:5673/)
> - attempt to load the file localhost:5673/plugin/data/world-110m.json
> What you get:
> a 404 page
> What you should get:
> the contents of the file
> Just to verify:
> - copy a .js file to the plugin/data/ directory where the console is installed
> - attempt to load localhost:5673/plugin/data/name_of_js_file.js
> - you should see the .js file in the browser. It's just .json and .woff2 files that won't
> - also to verify: if you load the console from an apache web server, the plugin/data/world-110m.json
loads just fine.
> The .woff2 files are fonts. You can see that they fail to load in the browser's debugging
console -> Network tab.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message