Failed to disable attachments #1828

Closed
opened 2025-11-02 04:14:29 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @w2ak on GitHub (May 28, 2018).

  • Gitea version (or commit ref): 4ba9745 with Docker
  • Git version: 2.15
  • Operating system: Docker on Ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No because it involves configuration
    • Not relevant
  • Log gist: not relevant?

Description

In my app.ini configuration I put

[attachment]
PATH = /data/gitea/attachments # This was here because of the template
ENABLED = false

However, I was able on my gitea to open an issue and attach a picture in it. Here are some of the reasons I could think about, I would love to know if you have an idea about this:

  • The attachment was a picture
  • The user attaching it is an admin
  • The 'ENABLED = false' option doesn't work (bug?)

I am not used to debugging in gitea, please give me some instructions if you want some information (are there relevant logs for this kind of problem?).

Originally created by @w2ak on GitHub (May 28, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 4ba9745 with Docker - Git version: 2.15 - Operating system: Docker on Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No because it involves configuration - [ ] Not relevant - Log gist: not relevant? ## Description In my app.ini configuration I put ``` [attachment] PATH = /data/gitea/attachments # This was here because of the template ENABLED = false ``` However, I was able on my gitea to open an issue and attach a picture in it. Here are some of the reasons I could think about, I would love to know if you have an idea about this: * The attachment was a picture * The user attaching it is an admin * The 'ENABLED = false' option doesn't work (bug?) I am not used to debugging in gitea, please give me some instructions if you want some information (are there relevant logs for this kind of problem?).
GiteaMirror added the type/bug label 2025-11-02 04:14:29 -06:00
Author
Owner

@w2ak commented on GitHub (May 28, 2018):

Just to be sure, I tested on the same server with a non-administrator account and same result, I was able to upload a picture.

@w2ak commented on GitHub (May 28, 2018): Just to be sure, I tested on the same server with a non-administrator account and same result, I was able to upload a picture.
Author
Owner

@lunny commented on GitHub (May 28, 2018):

I confirm this is a bug, when ENABLED = false, it's in fact enabled and it's disabled when ENABLED = true.

@lunny commented on GitHub (May 28, 2018): I confirm this is a bug, when `ENABLED = false`, it's in fact enabled and it's disabled when `ENABLED = true`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1828