Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-713

TCK: Contesting AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • tck
    • None

    Description

      In Section 28.1 of the Portlet 3.0 Specification titled "Portlet Application Configuration", states:

      "The @PortletApplication is a type annotation that can be applied to any class in the portlet application. It may appear at most once within the portlet application."

      The problem is that the the Java source for V3AnnotationPortletConfigTests test has two @PortletApplication annotations.

      AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java
      @PortletApplication(
         defaultNamespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"
      )
      @PortletConfiguration(portletName = "AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI")
      public class AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI implements Portlet {
          ...
      }
      
      AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java
      @PortletApplication(
         events = {
            @EventDefinition(
               qname = @PortletQName(
               localPart = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_a", 
               namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"), 
            payloadType = java.lang.String.class
            ), @EventDefinition(
               qname = @PortletQName(
               localPart = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_b", 
               namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"), 
            payloadType = java.lang.String.class
            )
         }
      )
      @PortletConfiguration(portletName = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration")
      public class AnnotationPortletConfigTests_SPEC2_28_EventDeclaration implements Portlet {
          ...
      }
      

      The proposed fix would be to move the defaultNamespaceURI attribute from AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java to AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java and then remove the @PortletApplication annotation from AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: