core
core copied to clipboard
CLI: Limited user problems
Problem Statement
Users with limited permissions are experiencing issues with the CLI in dotCMS. The problem involves discrepancies in file permissions that result in errors when attempting to pull files. Limited users are unable to access certain files due to permission restrictions, leading to errors during the pull operation.
Steps to Reproduce
- Log in to the dotCMS CLI with limited user credentials.
- Try to run the follow command
dotcli push --dry-run
- Observe errors related to file access or permissions during CLI operations.
- Now try to run the general pull
- You will have the same errors again
Acceptance Criteria
Permission Validation: Implement a mechanism in the CLI that checks and respects user permissions when performing file-related operations. Error Handling: Provide clear and informative error messages when a limited user attempts to access files without the necessary permissions. Pull Operation Enhancement: Modify the pull operation to consider user permissions, preventing attempts to retrieve files that the user does not have access to.
dotCMS Version
Tested on master // Docker // dotcms-cli-1.0.0-20231002.205953-1.jar
Proposed Objective
Quality Assurance
Proposed Priority
Priority 2 - Important