[PR #2955] [MERGED] Remove trailing slashes from filesystem paths #12471

Closed
opened 2025-12-29 22:21:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2955
Author: @axnsan12
Created: 3/4/2019
Status: Merged
Merged: 3/4/2019
Merged by: @jeremystretch

Base: developHead: trailing-slashes


📝 Commits (1)

  • 4d18d96 Remove trailing slashes from filesystem paths

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 netbox/netbox/settings.py (+2 -2)

📄 Description

Paths with trailing slashes do not work on windows, they cause errors such as django.core.exceptions.SuspiciousFileOperation: The joined path (C:\Projects\netbox\netbox\static\clipboard-2.0.4.min.js) is located outside of the base path component (C:\Projects\netbox\netbox\static\).

Fixes:

#2954


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/2955 **Author:** [@axnsan12](https://github.com/axnsan12) **Created:** 3/4/2019 **Status:** ✅ Merged **Merged:** 3/4/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `trailing-slashes` --- ### 📝 Commits (1) - [`4d18d96`](https://github.com/netbox-community/netbox/commit/4d18d9661b641b60a7da94671bbd3cb625e036f9) Remove trailing slashes from filesystem paths ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/settings.py` (+2 -2) </details> ### 📄 Description Paths with trailing slashes do not work on windows, they cause errors such as `django.core.exceptions.SuspiciousFileOperation: The joined path (C:\Projects\netbox\netbox\static\clipboard-2.0.4.min.js) is located outside of the base path component (C:\Projects\netbox\netbox\static\)`. ### Fixes: #2954 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:21:47 +01:00
adam closed this issue 2025-12-29 22:21:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12471