lunescode opened a new pull request #1093: URL: https://github.com/apache/incubator-linkis/pull/1093
### What is the purpose of the change bugfix: if the pass auth url set value “”, the method ".getRequestURI.startsWith" will always return true, it is not the result that we wanted, it can be a security risk. ### Brief change log (for example:) - Add judgement of whether it is empty ### Verifying this change This change added tests and can be verified as follows: - 1. set wds.linkis.gateway.conf.url.pass.auth="" in linkis-mg-gateway.properties, the restart gateway. - 2. set wds.linkis.server.user.restful.uri.pass.auth="" in linkis-ps-publicservice.properties, the restart publicservice. - 3. curl http://${gateway}/api/rest_j/v1/configuration/getCategory, if return "need login in" will be right. ### Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): ( no) - Anything that affects deployment: ( no ) - The MGS(Microservice Governance Services), i.e., Spring Cloud Gateway, OpenFeign, Eureka.: (no) ### Documentation - Does this pull request introduce a new feature? ( no) - If yes, how is the feature documented? (not documented) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
