Skip to content

Commit

Permalink
More debugging around the @ sign handling
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wregglesworth committed Jun 12, 2024
1 parent 5de586b commit 4dd61c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,14 @@ func (i *Internal) DescribeAnalysisHandler(c echo.Context) error {
ctx := c.Request().Context()

log.Info("in DescribeAnalysisHandler")
host := c.Param("host")
user := c.QueryParam("user")
if user == "" {
return echo.NewHTTPError(http.StatusBadRequest, "user query parameter must be set")
}

log.Infof("user: %s, user suffix: %s, host: %s", user, i.UserSuffix, host)

// Since some usernames don't come through the labelling process unscathed, we have to use
// the user ID.
fixedUser := i.fixUsername(user)
Expand All @@ -586,8 +589,6 @@ func (i *Internal) DescribeAnalysisHandler(c echo.Context) error {
return err
}

host := c.Param("host")

filter := map[string]string{
"subdomain": host,
}
Expand Down

0 comments on commit 4dd61c8

Please sign in to comment.