Skip to content

Package Import generates errors when you try to import directory or non-file #4689

@densenator

Description

@densenator

Describe the bug

09.Apr.2022 12:06:59 - IMPORT FATAL: Unable to read Cacti Package compress.zlib:///var/www/html/cacti/plugins/mikrotik/templates/

09.Apr.2022 12:06:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/cli/import_package.php[133]:fread(), CactiErrorHandler())
09.Apr.2022 12:06:59 - ERROR PHP NOTICE: fread(): read of 8192 bytes failed with errno=21 Is a directory in file: /var/www/html/cacti/cli/import_package.php on line: 133

## To Reproduce

Steps to reproduce the behavior:

  1. Use cli script for import template
  2. Choose wrong file
  3. See error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions