Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      in DLFolderFinderImpl, the static Method
      QueryUtil.iterate(...)
      is called to generate an Iterator for the results of a SQL-Query.
      Normally this should work nevertheless which DB you are using, since there is ORM. But in DLFolderFinderImpl there is no class that should be mapped. So there is just a Object[] and that is not handled well in QueryUtil for databases that don't support the SQL "limit" function, like Derby DB.
      Therefor you need som extra treatment. Therefor I created two private methods that handle the Iterator-generation, if the DB does not support "limit".

      1. DLFolderFinderImpl.diff
        3 kB
        Tobias Kaefer
      2. DLFolderFinderImpl.diff
        3 kB
        Tobias Kaefer

        Issue Links

          Activity

          Hide
          tok Tobias Kaefer (Inactive) added a comment -

          BTW: This issue is in Liferay for some time (see http://issues.liferay.com/browse/LEP-6571). Not for DLFolderFinderImpl, but for DLFileEntryAndShortcutFinderImpl, which seems to be the ancestor of DLFolderFinderImpl.

          Show
          tok Tobias Kaefer (Inactive) added a comment - BTW: This issue is in Liferay for some time (see http://issues.liferay.com/browse/LEP-6571 ). Not for DLFolderFinderImpl, but for DLFileEntryAndShortcutFinderImpl, which seems to be the ancestor of DLFolderFinderImpl.
          Hide
          tok Tobias Kaefer (Inactive) added a comment -

          See attached file

          Show
          tok Tobias Kaefer (Inactive) added a comment - See attached file
          Hide
          tok Tobias Kaefer (Inactive) added a comment -

          Updated patch for LR 6

          Show
          tok Tobias Kaefer (Inactive) added a comment - Updated patch for LR 6
          Hide
          tok Tobias Kaefer (Inactive) added a comment -

          Please have a look at this issue too:
          http://issues.liferay.com/browse/LPS-12136

          It also crashes the Document Library.

          Show
          tok Tobias Kaefer (Inactive) added a comment - Please have a look at this issue too: http://issues.liferay.com/browse/LPS-12136 It also crashes the Document Library.

            People

            • Assignee:
              igor.spasic Igor Spasic
              Reporter:
              tok Tobias Kaefer (Inactive)
              Recent user:
              Randy Zhu (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 50 weeks ago

                Development

                  Subcomponents