[PR #2974] [CLOSED] Error when ContentType is in wrong format #12478

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2974
Author: @aruhier
Created: 3/6/2019
Status: Closed

Base: developHead: fix_content_type_serializer


📝 Commits (1)

  • 66d1e88 Error when ContentType is in wrong format

📊 Changes

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

View changed files

📝 netbox/utilities/api.py (+2 -2)

📄 Description

Fixes:

When spliting the ContentType returns only one item, assignating the app_label and model fails. The API returns a 500 error.

Ensure that a ValidationError is returned if a ValueError is raised during the assignation


🔄 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/2974 **Author:** [@aruhier](https://github.com/aruhier) **Created:** 3/6/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `fix_content_type_serializer` --- ### 📝 Commits (1) - [`66d1e88`](https://github.com/netbox-community/netbox/commit/66d1e88f5a7ed9e9a3b2e03288c9e1b12d2baf16) Error when ContentType is in wrong format ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/api.py` (+2 -2) </details> ### 📄 Description ### Fixes: When spliting the ContentType returns only one item, assignating the app_label and model fails. The API returns a 500 error. Ensure that a ValidationError is returned if a ValueError is raised during the assignation --- <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:48 +01:00
adam closed this issue 2025-12-29 22:21:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12478