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

V3AnnotationPortletArtifactValidityTests inject dependent-scoped strings into @ApplicationScoped beans

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.0.1
    • 3.0.2-TCK
    • tck
    • None

    Description

      Three classes in V3AnnotationPortletArtifactValidityTests inject a dependent-scoped String (the value for which is the portlet name, which is associated with the portlet request):

      @Inject
      @PortletName
      private String portletName;
      

      The fix would be to follow the pattern already found elsewhere in the tests by injecting the @PortletRequestScoped PortletRequestScopedArtifacts instance and calling the getPortletName() method:

      @Inject
      private PortletRequestScopedArtifacts portletRequestScopedArtifacts;
      
      ...
      
      String portletName = portletRequestScopedArtifacts.getPortletName();
      

      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: