Skip to content

x/pkgsite: Encountering a 500 internal server error when the search term begins with a hyphen ("-") #64422

@raza-basit

Description

@raza-basit

What is the URL of the page with the issue?

https://pkg.go.dev/search?q=-cover
https://pkg.go.dev/search?q=-http

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Screenshot

image

What did you do?

I have typed -cover in the search box and it returns a 500 internal server error.

What did you expect to see?

It should return the package listing page

What did you see instead?

I'm seeing, 500 Internal Server Error

Metadata

Metadata

Assignees

Labels

pkgsitepkgsite/searchIssues related to pkg.go.dev search functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions