Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-146861

It is not possible to sort the entries by a field that was created after the object is published

    Description

    Summary:
    It is not possible the entries by a field that was created after the object is published

    Steps to Reproduce:

    1. Create an object with a field and publish it
    2. Add another field to it
    3. Go to the object portlet
    4. Add some entries
    5. Try to order by the field that was created on Step #2

    Expected Result:
    Entries are ordered

    Actual Result:
    Empty page is displayed

    2022-02-07 13:44:22.697 ERROR [http-nio-8080-exec-3][WebApplicationExceptionMapper:38] com.liferay.portal.odata.sort.InvalidSortException: Unable to sort by property: text2
    com.liferay.portal.odata.sort.InvalidSortException: Unable to sort by property: text2
    	at com.liferay.portal.odata.internal.sort.SortParserImpl.lambda$getSortFieldOptional$2(SortParserImpl.java:159) ~[?:?]
    	at java.util.Optional.orElseThrow(Optional.java:290) ~[?:1.8.0_221]
    ...
    

    Verified on master: 9b3fee728a74f755915572ef7f6defca699b7e78

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            andre.farias André Farias
            Reporter:
            rodrigo.cunha Rodrigo Cunha (Inactive)
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Paulo Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              26 weeks, 3 days ago

                Packages

                Version Package
                7.4.3.18 CE GA18
                Master