Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://code.dlang.org/ search for packages ending in "-d" leads to Internal Error #2236

Closed
vnayar opened this issue Mar 23, 2022 · 2 comments

Comments

@vnayar
Copy link

vnayar commented Mar 23, 2022

System information

  • OS Platform and distribution: Firefox 98.0.1, Linux Ubuntu 20.04.4 LTS

Bug Description

On https://code.dlang.org, any search for a package whose name ends in "-d" results in the following error:

500 - Internal Server Error

Internal Server Error

Internal error information:
vibe.db.mongo.connection.MongoDriverException@/root/.dub/packages/vibe-d-0.9.3/vibe-d/mongodb/vibe/db/mongo/cursor.d(304): Query failed. Does the database exist?
----------------
??:? [0x559395620b25]
??:? [0x559395648c96]
??:? [0x55939562a44f]
/root/ldc2-1.27.1-linux-x86_64/bin/../import/std/exception.d:517 [0x559394f5486b]
/root/ldc2-1.27.1-linux-x86_64/bin/../import/std/exception.d:437 [0x559394f45d05]
/root/.dub/packages/vibe-d-0.9.3/vibe-d/mongodb/vibe/db/mongo/cursor.d:304 [0x559395008fa6]
source/app.d:462 [0x5593950099d6]
source/app.d:322 [0x559395009834]
source/app.d:367 [0x55939504481c]
/root/.dub/packages/vibe-d-0.9.3/vibe-d/mongodb/vibe/db/mongo/cursor.d:233 [0x559395008aba]
/root/.dub/packages/vibe-d-0.9.3/vibe-d/mongodb/vibe/db/mongo/cursor.d:60 [0x559394ed86ad]
/root/ldc2-1.27.1-linux-x86_64/bin/../import/std/algorithm/iteration.d:614 [0x5593950439d8]
/root/ldc2-1.27.1-linux-x86_64/bin/../import/std/array.d:140 [0x559394ed3882]
source/dubregistry/dbcontroller.d:333 [0x559394eb8b30]
source/dubregistry/registry.d:103 [0x559394e5e5e3]
source/dubregistry/web.d:476 [0x559394e5e570]
/root/.dub/packages/vibe-d-0.9.3/vibe-d/web/vibe/web/web.d:1043 [0x559394f02645]
/root/.dub/packages/vibe-d-0.9.3/vibe-d/web/vibe/web/web.d:214 [0x559394f02273]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/router.d:218 [0x55939546305c]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/router.d:674 [0x55939546572b]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/router.d:607 [0x559395462d56]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/router.d:211 [0x559395462b1f]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/server.d:2292 [0x55939546b2a0]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/server.d:253 [0x559395469707]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/server.d:245 [0x559395468fd5]
root/.dub/packages/vibe-d-0.9.3/vibe-d/http/vibe/http/server.d:2048 [0x5593954730eb]
../../vibe-core/source/vibe/core/task.d:743 [0x559395576ad5]
../../vibe-core/source/vibe/core/task.d:761 [0x55939557325b]
../../vibe-core/source/vibe/core/task.d:449 [0x5593955729b9]
??:? [0x559395621faa]

How to reproduce?

  1. Navigate to https://code.dlang.org/
  2. Enter a search term that ends with a "-d" in the top right "Search for Package", e.g. "vibe-d", "asdfasdf-d", etc.

This behavior appears to ONLY be reproducible for packages that end in "-d", it does not work for "-c", "-e", or "-dd", for example.

Expected Behavior

The search results will be shown, including the possibility of 0 results.

@dkorpel
Copy link
Contributor

dkorpel commented Mar 23, 2022

This is a known issue of the dub registry: dlang/dub-registry#490

@WebFreak001
Copy link
Member

closing this because that issue exists there (and belongs there instead of dlang/dub)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants