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

A calendar resource is not findable if a previous one with the same name was deleted

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 Beta 6
    • Fix Version/s: 7.0.0 Beta 6
    • Component/s: Calendar
    • Labels:
      None

      Description

      A calendar resource is created. Then deleted. Now, if another calendar resource is created—with the same name—the new resource will not be findable.

      Steps to reproduce

      1. Add calendar to a page.
      2. Go to the "Resources" tab.
      3. Add a resource, pay attention to its name.
      4. Delete the resource.
      5. Add another resource with the same name as the deleted one.
      6. Go back to the "Calendar" tab.
      7. In the "Other calendars" input, search for the resource name. (Type its full name)

      Expected results

      • The resource would be listed.

      Actual results

      • The result is not listed.
      • A stack trace appears in the logs:
      19:10:44,982 ERROR [http-bio-8080-exec-3][PortletServlet:117] javax.portlet.PortletException: com.liferay.calendar.exception.NoSuchCalendarException: No Calendar exists with the primary key 21544
      javax.portlet.PortletException: com.liferay.calendar.exception.NoSuchCalendarException: No Calendar exists with the primary key 21544
      	at com.liferay.calendar.web.portlet.CalendarPortlet.serveResource(CalendarPortlet.java:287)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:122)
      	at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:84)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:116)
      

        Attachments

        1. Fixed.gif
          Fixed.gif
          52 kB
        2. Reproduced.gif
          Reproduced.gif
          46 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 37 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 Beta 6