This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 2900f5ffd2 Fixed error message. (#6818)
2900f5ffd2 is described below
commit 2900f5ffd239f001c3fb9797a17124f7b80c8a59
Author: Rima Shah <[email protected]>
AuthorDate: Tue May 10 19:15:34 2022 -0600
Fixed error message. (#6818)
---
CHANGELOG.md | 1 +
traffic_ops/traffic_ops_golang/server/detail.go | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7c6565a933..341ce78450 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -48,6 +48,7 @@ The format is based on [Keep a
Changelog](http://keepachangelog.com/en/1.0.0/).
- t3c-generate fix for combining remapconfig and cachekeyconfig parameters for
MakeRemapDotConfig call.
- [#6780](https://github.com/apache/trafficcontrol/issues/6780) Fixed t3c to
use secondary parents when there are no primary parents available.
- Correction where using the placeholder __HOSTNAME__ in "unknown" files
(others than the defaults ones), was being replaced by the full FQDN instead of
the shot hostname.
+- [#6800](https://github.com/apache/trafficcontrol/issues/6800) Fixed
incorrect error message for `/server/details` associated with query parameters.
### Removed
- Remove traffic\_portal dependencies to mitigate `npm audit` issues,
specifically `grunt-concurrent`, `grunt-contrib-concat`,
`grunt-contrib-cssmin`, `grunt-contrib-jsmin`, `grunt-contrib-uglify`,
`grunt-contrib-htmlmin`, `grunt-newer`, and `grunt-wiredep`
diff --git a/traffic_ops/traffic_ops_golang/server/detail.go
b/traffic_ops/traffic_ops_golang/server/detail.go
index aa45dd9552..287e0e4011 100644
--- a/traffic_ops/traffic_ops_golang/server/detail.go
+++ b/traffic_ops/traffic_ops_golang/server/detail.go
@@ -56,7 +56,7 @@ func GetDetailParamHandler(w http.ResponseWriter, r
*http.Request) {
}
}
if hostName == "" && physLocationIDStr == "" {
- api.HandleErr(w, r, inf.Tx.Tx, http.StatusBadRequest,
errors.New("Missing required fields: 'hostname' or 'physLocationID'"), nil)
+ api.HandleErr(w, r, inf.Tx.Tx, http.StatusBadRequest,
errors.New("missing required fields: 'hostName' or 'physLocationID'"), nil)
return
}
orderBy := "hostName"