Skip to content

[fix:1.1] Prevent command creation for devices without a DeviceConnection#1055

Merged
nemesifier merged 1 commit into
1.1from
1.1-pr-1021
May 23, 2025
Merged

[fix:1.1] Prevent command creation for devices without a DeviceConnection#1055
nemesifier merged 1 commit into
1.1from
1.1-pr-1021

Conversation

@nemesifier
Copy link
Copy Markdown
Member

Backporting #1021 to 1.1 branch.

…1016

Verify that a device has associated DeviceConnection
credentials before allowing to create new Command objects.

Additionally, enforce validation of connection and command types
to ensure only permitted values are diasplayed and accepted
through the REST API.

Closes #1016

Signed-off-by: DragnEmperor <dragnemperor@gmail.com>
(cherry picked from commit 4836913)

# Conflicts:
#	openwisp_controller/connection/base/models.py
@nemesifier nemesifier self-assigned this May 23, 2025
@nemesifier nemesifier added the bug label May 23, 2025
@nemesifier nemesifier changed the base branch from master to 1.1 May 23, 2025 21:32
@nemesifier nemesifier merged commit 422604d into 1.1 May 23, 2025
4 checks passed
@nemesifier nemesifier deleted the 1.1-pr-1021 branch May 23, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant