modrinth / labrinth

Our Rust-based backend utilizing the actix-web framework to serve Modrinth's API.
https://modrinth.com
GNU Affero General Public License v3.0
509 stars 73 forks source link

Project slug differs between search results and projects list for user #882

Closed msfjarvis closed 4 months ago

msfjarvis commented 4 months ago

Describe the bug

There seems to be some issue which can allow the project slug to differ for the same project, with the search results having a potentially stale value while the user's project list has the correct one.

Steps to reproduce

  1. Search for "Enhanced Style" resource pack
  2. Get a search result with this URL which 404s: https://modrinth.com/resourcepack/enhanced-style
  3. Go to DreamX's profile here: https://modrinth.com/user/DreamX
  4. Find the correct URL in their projects list: https://modrinth.com/resourcepack/enhancedstyle

Expected behavior

The URL for the resourcepack in the search results should match the one in the project list.

Additional context

No response

misode commented 4 months ago

Modrinth search is cached, and thus changed are delayed by ~30 minutes

msfjarvis commented 4 months ago

Got it, the cache seems to have rolled over now so I guess everything is working as intended and I just caught a weird timing. Thanks for the info!