Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-139255

Passing an unquoted CalendarSpec string to snapm results in a confusing error

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.8, rhel-10.2
    • snapm
    • None
    • None
    • Moderate
    • rhel-storage-management
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Creating a schedule using a calendarspec containing spaces without enclosing the value in quotes.

      What is the impact of this issue to you?

      Snapm crashes with a confusing Python error instead of validating the input.

      Please provide the package NVR for which the bug is seen:

      snapm-0.5.2-3.el10

      How reproducible is this bug?:

      always

      Steps to reproduce

      1. Run the snapm schedule create command and provide a calendarspec with spaces (e.g., Mon * 00:00:00) without using quotes.
      snapm -v schedule create --policy-type ALL --calendarspec Mon *-*-* 00:00:00 sts-cal-Mon_star-star-star_0 /mnt/thinlvmntdir 

      Expected results

      Should parse the spec correctly or provide a clear validation error stating that the calendarspec must be quoted.

      Actual results

      ERROR - Command failed: string index out of range

              rhn-support-bmr Bryn Reeves
              rhn-support-fsuba Filip Suba
              Bryn Reeves Bryn Reeves
              Filip Suba Filip Suba
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: