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

Wrong handling of .well-known #10994

Open
SoniEx2 opened this issue Jun 11, 2023 · 4 comments
Open

Wrong handling of .well-known #10994

SoniEx2 opened this issue Jun 11, 2023 · 4 comments
Labels
🐛Bug Unexpected behavior

Comments

@SoniEx2
Copy link
Contributor

SoniEx2 commented Jun 11, 2023

💡 Summary

Misskey handles .well-known wrong. Despite having code to send 204, it never actually does so.

🥰 Expected Behavior

Misskey should return [404? 204?] for .well-known's it doesn't handle.

🤬 Actual Behavior

Misskey sends 200 for .well-known's it doesn't handle.

📝 Steps to Reproduce

Visit any .well-known like .well-known/doesntexist or the proposed .well-known/resource-that-should-not-exist-whose-status-code-should-not-be-200

📌 Environment

...

💻 Frontend

  • Model and OS of the device(s):
  • Browser:
  • Server URL:
  • Misskey:
    13.x.x

🛰 Backend (for server admin)

  • Installation Method or Hosting Service:
  • Misskey: 13.x.x
  • Node: 18.x.x
  • PostgreSQL: 15.x.x
  • Redis: 7.x.x
  • OS and Architecture:
@SoniEx2 SoniEx2 added the ⚠️bug? This might be a bug label Jun 11, 2023
@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Jun 11, 2023

you should try to get this bug patched and the patch widely deployed before august, or you might get some very confused users.

@tamaina
Copy link
Contributor

tamaina commented Jun 11, 2023

before august

Why?

@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Jun 12, 2023

  1. fedicraft
  2. blanketcon

fedicraft's "does this support fedicraft" check is to probe status codes. since it's returning 200 when it shouldn't, fedicraft thinks misskey supports fedicraft.

which is a misskey bug.

@saschanaz saschanaz added 🐛Bug Unexpected behavior and removed ⚠️bug? This might be a bug labels Jun 13, 2023
@saschanaz
Copy link
Member

saschanaz commented Jun 13, 2023

I'm not convinced by that August thing but anyway this is a bug. Generally I'd be happier if Misskey binds to some valid list of foo/* rather than just *.

// Render base html for all requests
fastify.get('*', async (request, reply) => {
return await renderBase(reply);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Unexpected behavior
Projects
Development

No branches or pull requests

3 participants