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

Lookup of asset id 0 yields unexpected behavior. #1087

Open
barnjamin opened this issue Jul 1, 2022 · 0 comments
Open

Lookup of asset id 0 yields unexpected behavior. #1087

barnjamin opened this issue Jul 1, 2022 · 0 comments
Labels
new-bug Bug report that needs triage Team Lamprey

Comments

@barnjamin
Copy link
Contributor

Subject of the issue

A request like https://mainnet-idx.algonode.cloud/v2/assets/0

Will generate the query

 SELECT index, creator_addr, params, created_at, closed_at, deleted FROM asset a WHERE NOT a.deleted ORDER BY index ASC LIMIT 1

Which just returns the first asset it comes across by index since the 0 is omitted from the query parameters.

This is strange behavior and should either be documented or return a 404

Your environment

Indexer 2.11.1

@barnjamin barnjamin added the new-bug Bug report that needs triage label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-bug Bug report that needs triage Team Lamprey
Projects
None yet
Development

No branches or pull requests

2 participants