Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-770

Insufficient database permission handling

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Needs Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.1.0
    • Fix Version/s: None
    • Component/s: Database
    • Labels:
      None
    • Additional information:
      Hide

      These are only permissions, that should be given to MySQL user for testing:

      GRANT SELECT ON `inportal_database`.`inp_Phrase` TO 'inportal_user'@'localhost';
      GRANT SELECT ON `inportal_database`.`inp_ConfigurationValues` TO 'inportal_user'@'localhost';
      GRANT SELECT ON `inportal_database`.`inp_Language` TO 'inportal_user'@'localhost';
      GRANT SELECT ON `inportal_database`.`inp_Modules` TO 'inportal_user'@'localhost';
      GRANT SELECT ON `inportal_database`.`inp_Theme` TO 'inportal_user'@'localhost';
      GRANT SELECT ON `inportal_database`.`inp_Skins` TO 'inportal_user'@'localhost';

      Also please disable debug mode or just turn DBG_SQL_FAILURE off.

      Show
      These are only permissions, that should be given to MySQL user for testing: GRANT SELECT ON `inportal_database`.`inp_Phrase` TO 'inportal_user'@'localhost'; GRANT SELECT ON `inportal_database`.`inp_ConfigurationValues` TO 'inportal_user'@'localhost'; GRANT SELECT ON `inportal_database`.`inp_Language` TO 'inportal_user'@'localhost'; GRANT SELECT ON `inportal_database`.`inp_Modules` TO 'inportal_user'@'localhost'; GRANT SELECT ON `inportal_database`.`inp_Theme` TO 'inportal_user'@'localhost'; GRANT SELECT ON `inportal_database`.`inp_Skins` TO 'inportal_user'@'localhost'; Also please disable debug mode or just turn DBG_SQL_FAILURE off.
    • Change Log Message:
      Fixed some errors, when not tables in database are available
    • Story Points:
      2
    • External issue ID:
      956
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Recently there was a case, when only some of In-Portal table were actually present/accessible to In-Portal (sort of daemon mode), when there was a need to handle simple request and nothing more.

      I've noticed, that in such case In-Portal doesn't properly handle this resulting more warning/notices to be raised.

      Here is the patch, that prevents such behavior.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmitry Dmitry Andrejev [Intechnic]
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: