# Sehr lange \`title\`-Einstellung verhindert Backups

**URL:** https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669
**Category:** Bug
**Created:** [17. Januar 2025 um 12:54 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669 "2025-01-17T12:54:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [17. Januar 2025 um 12:54 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669/1 "2025-01-17T12:54:44Z")

</div>

Wenn Sie einen `title` konfigurieren, der länger als X Zeichen ist, wird dies die Erstellung von Backups verhindern.

`EXCEPTION: /var/www/discourse/lib/discourse.rb:139:in 'exec': rm: cannot remove '/var/www/discourse/public/backups/default/redacted-xxx(...)xxx-2025-01-17-125027-v20250116024516.tar': File name too long `

Ja, Leute machen das wirklich.

Vorgeschlagene [Korrektur](https://github.com/discourse/discourse/blob/main/lib/backup_restore/backuper.rb#L78)

```plaintext
    def get_parameterized_title
      SiteSetting.title.parameterize.presence[..64] || "discourse"
    end

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [17. Januar 2025 um 15:21 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669/2 "2025-01-17T15:21:39Z")

</div>

> [@Richard – Communiteq](#):
>
> Ja, das tun die Leute wirklich.

~~Das sollten sie aber nicht!~~

Ich nehme an, Ihr Punkt ist, dass dies ein weiterer Fall ist, in dem ich ihnen nicht sagen sollte, dass sie falsch liegen.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [20. Januar 2025 um 04:37 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669/3 "2025-01-20T04:37:47Z")

</div>

Korrektur muss möglicherweise verfeinert werden:

```plaintext
> "".parameterize.presence[..64]
NoMethodError: undefined method `[]' for nil

```

Das sollte aber funktionieren.

```plaintext
SiteSetting.title.parameterize[...64].presence || "discourse"

```

Wir sollten wahrscheinlich noch einmal prüfen, ob wir mit der aktuellen maximalen Längenbeschränkung für Seitentitel @hugh einverstanden sind.

cc @gerhard

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [24. Januar 2025 um 04:38 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669/4 "2025-01-24T04:38:10Z")

</div>

Wird behoben mit:

> <https://github.com/discourse/discourse/pull/30977>
>
> This corrects an issue where very long titles on
> website would cause the backup …not to save
> cause filename was too long

---

<div class="post-metadata">

### Author: ![LoganBryant](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@LoganBryant](https://meta.discourse.org/u/LoganBryant)
#### Post date: [24. Januar 2025 um 07:02 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669/5 "2025-01-24T07:02:09Z")

</div>

Vielen Dank für die Informationen.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [26. Januar 2025 um 21:00 UTC](https://meta.discourse.org/t/very-long-title-setting-prevents-backups-from-being-made/347669/6 "2025-01-26T21:00:34Z")

</div>

Dieses Thema wurde nach 2 Tagen automatisch geschlossen. Neue Antworten sind nicht mehr möglich.
