-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Upgrade of hawtio/react to 1.5.0
* With this upgrade, the transport method of jolokia requests has been changed from jquery to fetch. This meant a number of changes in the development server in order to continue working. * management-service.ts * Rather than just blindly connect to a target app, try testing the connection first and if it fails do not change location / open a new browser tab but notify the user with the event service * oauth/[....]service.ts * Mandate a Content-Type of application/json when using fetch. Due to CORS this is not possible when actually calling fetch(uri, { headers }) * Ensure when regsitering the fetch interceptor that the headers that have been created are not overwritten by any headers already contained in the requestConfig. * webpack.config.dev.js * Re-implements management endpoint to conduct a sub-request using fetch to the master endpoint rather than redirecting. The fetch function appears to not redirect correctly when a Content-Length header is specified * Implementing a sub-request is the same way that the gateway component solves this issue * Ensures the token is passed to the sub-request * Logs whether the request body has been incorrectly parsed empty by the Express server in the webpack-dev-server.
- Loading branch information
1 parent
44cd63c
commit e8c1a42
Showing
12 changed files
with
271 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.