Comments (3)
IMHO, the status code should be 5xx
server error indicating such feature is unavailable because it's disabled/non-existent.
I think either 501 Not Implemented
or 503 Service Unavailable
is more suitable than 404 Not Found
. However, since 503
often suggests a service is only temporarily unavailable, I would prefer 501
.
from cryostat.
Hmm. Docs I can find detailing 501 say it's typically used when the server doesn't understand the request method, which isn't quite what we need to convey. I also see things like "and is incapable of supporting it (the request method) for any resource", which is not true here.
503's temporary nature might be acceptable though. The deployment could be respun into a non-minimal state, or perhaps the client request happened to come in at a time when the admin had spun up the service but not yet finished manually linking up the components and setting the env vars. But, 503 is also potentially misleading, because this typically indicates that the entire service is unavailable. Here, we're simply stating that a specific capability is disabled, but the service itself is definitely available.
from cryostat.
Yah that makes sense.
Another option is to respond with a generic 500
, as well as a message stating it's not yet set up in minimal mode.
from cryostat.
Related Issues (20)
- [Task] Comment-triggered workflows should report status checks
- [Bug] Archives > All Archives > Download does not download JFR file HOT 17
- [Bug] Missing log output since #1720 HOT 3
- [Bug] CI startup failure HOT 8
- [Story] Integration with Red Hat Insights for Red Hat customers
- [Bug] Typo in CI workflow
- [Bug] CI `/build_test` does not reflect code quality checks status, only tests
- [Request] Env map forwarded to Agent instances should be configurable
- [Bug] Hang on opening JMX connection HOT 3
- [Meta] CI workflows must request write permissions HOT 1
- [Bug] CI does not have permissions to download `cryostat-core` dependency HOT 5
- [Request] Provide a param that can set the web context root path of cryostat-web HOT 6
- [Task] Add `--tags` flag to `git describe` in `pom.xml` version generation
- [Meta] Drop release drafter action, add GitHub release notes config
- [Bug] javax.naming.ConfigurationException: Environment variable CRYOSTAT_JMX_CREDENTIALS_DB_PASSWORD must be set and non-blank HOT 8
- [Bug] Websocket not working with Cryostat exposed on a specific Path HOT 2
- [Bug] Cryostat should not always assume Kubernetes ports numbered 9091 are JMX
- [Bug] `BUILTIN_DISCOVERY_DISABLED` is ignored if `PLATFORM` is set
- [Bug] Cannot delete custom targets that no longer point to a JVM
- [Bug] Unable to interact with short form custom target HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryostat.