-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
raw wiki files return 404 #3523
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
Comments
"raw files" means non-md files, files that are not markdown and not supposed to be parsed like images, text, etc. |
@thehowl Gitea pre-1.4.0 (1.3.2) used to be able to serve any file from a project's wiki, even in subdirectories. Even though previous versions didn't show the website with the markdown editor, it did serve md files and any other kind of file type present in the wiki repository. I can link you an example if you need it. |
@Nabile-Rahmani sorry about the delay. Hmm, if it did use to work, this seems like an issue then. @lafriks can you please add kind/bug? |
Does this bug have something in common with no images shown in wiki pages please? I'm unable to put any image into wiki pages - it always shows 404 error... |
@Pablo2048 What do you mean? Even external images? |
@thehowl Thanks for reply - No - it seems like external images works. Internal images (contained inside wiki) return 404. |
Then yes, it's the same issue. Thanks for pitching in! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Is this still a problem? |
Yes - in 1.7.1 the problem persist. It seems like it will be solved in 1.8 - see #4690 |
Could someone reopen this issue ? I'm still getting 404 errors on 1.9.4. |
@Nabile-Rahmani I'd suggest you open a new issue, as the cause for your problem is probably different than this'. Please try to give us some information about how it's failing exactly. |
[x]
): not relevanthttps://try.gitea.io/testerxxx/test-wiki/wiki/raw/file.txt
Description
Raw files need to have '.md' added as extension to be served.
They are served by repo.WikiRaw() which does this:
models.WikiNameToFilename is a short function:
Shortly put ".md" is appended to the path, in order to get a raw file from the repo, say "file.txt" it has to be saved as "file.txt.md" and it will be available as "wiki/raw/file.txt".
The text was updated successfully, but these errors were encountered: