Debian: system modify command accepts garbage input for latitude and longitude
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Christopher de Oliveira Souza |
Bug Description
Brief Description
-------
System modify command accepts garbage input for latitude and longitude.
Severity
-------
Standard.
Steps to Reproduce
-------
On a system eg.
one of the subclouds (or system controller)
$ system modify --latitude garbage --longitude 432784389248923
Expected Behavior
-------
conditions for valid lat/long values:
lat/long must be finite number
latitude should be between -90 to +90 inclusive
longitude must be between -180 to +180 inclusive
Expect the system modify command to check validity and return appropriate feedback if the value is not acceptable
Actual Behavior
-------
system modify command does not appear to do any checking
$ system modify --latitude garbage --longitude 432784389248923
-------
Property Value
-------
contact None
created_at 2022-12-
description None
distributed_
https_enabled False
latitude garbage
location None
longitude 432784389248923
name dc-subcloud3
region_name subcloud3
sdn_enabled False
security_feature spectre_meltdown_v1
service_
shared_services []
software_version 22.12
system_mode simplex
system_type All-in-one
timezone UTC
updated_at 2022-12-
uuid 6d08f86e-
vswitch_type none
Reproducibility
-------
yes
System Configuration
-------
DC system (with subclouds)
Last Pass
-------
N/A
Timestamp/Logs
-------
N/A
Alarms
-------
N/A
Test Activity
-------
N/A
Workaround
-------
N/A
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.config |
Changed in starlingx: | |
assignee: | nobody → Christopher de Oliveira Souza (cdeolive) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/869213
Review: https:/