Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21744

Do not throw an exception for a query on proxies when proxies are disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF23, 8.10-HF03, 9.1
    • Component/s: Core VCS

      Description

      If the proxies are disabled in the repository configuration with

      <proxies enabled="false"/>

      and the following query is run

      SELECT * FROM Document WHERE ecm:isProxy = 1

      it will raise a QueryParseException

      Failed to execute query: SELECT * FROM Document WHERE  ecm:isProxy = 1, 
      Proxies are disabled by configuration, a query with ecm:isProxy = 1 is disallowed.
      

      It could be better to produce an error in the logs and force the boolean to false.
      If the user does not get the expected result, we could hope he will look at the logs to understand why.

      We could also use a configuration property to have a strict mode, set to false by default, which will keep the QueryParseException.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h