Tsukilc opened a new issue, #2942: URL: https://github.com/apache/incubator-hugegraph/issues/2942
### Feature Description (功能描述) ## Background Currently, restserver.url in rest-server.properties requires an explicit scheme prefix such as http://, which can be slightly inconvenient and inconsistent with other modules. In some components (e.g. Graph AI), URLs without a scheme are supported by defaulting to http, while allowing users to override the scheme explicitly. This provides a more user-friendly configuration experience. ## Current Behavior The restserver.url property must include a full scheme, for example: restserver.url=http://127.0.0.1:8080 If the scheme is omitted, the URL may fail to be parsed or behave unexpectedly. ## Expected Behavior Support a unified and more flexible configuration rule for restserver.url: Scheme is optional If no scheme is provided, default to http:// restserver.url=127.0.0.1:8080 Explicit scheme should override the default restserver.url=http://127.0.0.1:8080 restserver.url=https://127.0.0.1:8080 Proposed Change During configuration parsing: If restserver.url does not contain a scheme (e.g. http://, https://), automatically prepend http:// If a scheme is present, preserve the original value Align the URL handling behavior with Graph AI for consistency -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
