GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Error querying suites info when installed without public synonyms · Issue #957 · utPLSQL/utPLSQL

Error querying suites info when installed without public synonyms #957

New issue
Copy link
New issue
Copy link
Closed
Closed
Error querying suites info when installed without public synonyms#957
Copy link
Labels
bug
Milestone
v3.1.8

Description

@michaelstaszewski
michaelstaszewski
opened on Jun 24, 2019
Issue body actions

Using 3.1.7, but I don't believe this is a new issue.

I've followed the install guide to install privately into a schema, UT3, and I've allowed access to another schema, UT_USER. My installation process is...

@create_utplsql_owner.sql ut3 ut3 users
@install.sql ut3

CREATE USER ut_user IDENTIFIED BY ut_user;
GRANT "CONNECT" TO ut_user;
GRANT "RESOURCE" TO ut_user;
ALTER USER ut_user DEFAULT ROLE "CONNECT", "RESOURCE";

@create_user_grants.sql ut3 ut_user;
@create_user_synonyms.sql ut3 ut_user;

When connected as UT_USER I can run suites OK, but I cannot query for them using get_suites_info.

Query

  SELECT t.*
    FROM TABLE (
             ut_runner.get_suites_info (a_owner => user, a_package_name => null))
         t

Exception

ORA-00904: : invalid identifier
ORA-06512: at "UT3.UT_SUITE_MANAGER", line 821
ORA-06512: at "UT3.UT_RUNNER", line 201
ORA-06512: at line 1

Activity

  1. jgebal
    added
    bug
    on Jun 24, 2019
  2. jgebal
    added this to the v3.1.8 milestone on Jun 24, 2019
  3. jgebal commented on Jun 24, 2019

    @jgebal
    jgebal
    on Jun 24, 2019
    Member
    More actions

    Thanks for reporting this issue @michaelstaszewski
    Looks like grants are missing for suite cache tables when using non-public grants.
    You would need to add those to the installation:

    grant select on &&ut3_owner..ut_suite_cache to &ut3_user;
    grant select on &&ut3_owner..ut_suite_cache_package to &ut3_user;
    grant select on &&ut3_owner..ut_suite_cache_schema to &ut3_user;

    I'm currently working on improving utPLSQL security and privileges model so it's possible that those grants will go away totally in next release.

  4. jgebal
    added a commit that references this issue on Jun 24, 2019

    Unified grants & synonyms scripts to avoid any disconnect between PUB…

    This issue will close once commit ae3326f is merged into the 'develop' branch.
    ae3326f
  5. jgebal commented on Jun 24, 2019

    @jgebal
    jgebal
    on Jun 24, 2019
    Member
    More actions

    I've replicated the issue locally and provided a permanent fix for it in PR #954
    If you want, you can use the code in that PR for now.
    The changes will become part of v3.1.8.

    Sorry for inconvenience.

  6. jgebal
    closed this as completedin ae3326fon Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      • v3.1.8

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.