dotCMS / core

Headless/Hybrid Content Management System for Enterprises

Home Page:http://dotcms.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI: Case Sensitivity Issue with "direction" Parameter in CLI

bryanboza opened this issue · comments

Problem Statement

In the dotCMS Command Line Interface (CLI), there is an issue where the "direction" parameter is case sensitive. This inconsistency causes inconvenience for users, especially when specifying sorting direction, as they may unintentionally use incorrect capitalization and encounter unexpected behavior.
image

image

Steps to Reproduce

  • Access the dotCMS Command Line Interface (CLI) using appropriate credentials.
  • Execute a command that includes the "direction" parameter with different capitalization (e.g., "asc", "ASC", "desc", "DESC") to specify sorting direction.
  • Observe that the CLI does not recognize the parameter if the capitalization does not match the expected format.

Acceptance Criteria

  • Case Insensitivity: Enhance the dotCMS CLI to make the "direction" parameter case insensitive, allowing users to specify sorting direction regardless of capitalization (e.g., "asc", "ASC", "desc", "DESC").
  • Consistent Parameter Recognition: Ensure that the CLI accurately recognizes and interprets the "direction" parameter regardless of capitalization, maintaining consistent behavior across different commands.
  • Documentation Update: Update the CLI documentation to inform users about the case insensitivity of the "direction" parameter and how to use it effectively.

dotCMS Version

Tested on master // lastest CLI version

Proposed Objective

Quality Assurance

Proposed Priority

Priority 2 - Important