Pluto
  1. Pluto
  2. PLUTO-85

renderResponse.getNamespace() returns invalid Javascript name

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: unspecified
    • Fix Version/s: unspecified
    • Component/s: portlet container
    • Labels:
      None
    • Environment:
      Cocoon-2.1.5.1 portal

      Description

      Use of renderResponse.getNamespace() method is primary for prefixing names of script variables and functions in portlets.

      In Cocoon-2.1.5.1 portal environment renderRequest.getNamespace() returns i.e. 'Helloworld-1' and Pluto consequently constructs namespace as 'Pluto_Helloworld-1_'. Such a name is not valid name for Javascript function or variable.

      Patch that translates all '-' to '_' in returning namespace is attached.

      1. RenderResponseImpl.diff.txt
        0.8 kB
        @deprecated ZHENG Zhong
      2. TIMESTAMP_20041116.patch_1.diff
        1 kB
        Michal Durdina

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12565199 ] jira [ 12586114 ]
        Mark Thomas made changes -
        Workflow jira [ 38413 ] Default workflow, editable Closed status [ 12565199 ]
        David DeWolf made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Craig Doremus made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s Current CVS [ 10731 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.0.1-rc2 [ 11009 ]
        @deprecated ZHENG Zhong made changes -
        Attachment RenderResponseImpl.diff.txt [ 12311340 ]
        Craig Doremus made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Nick Lothian made changes -
        Assignee Nick Lothian [ nlothian ]
        Nick Lothian made changes -
        Fix Version/s Current CVS [ 10731 ]
        Fix Version/s 1.0.1-rc2 [ 11009 ]
        Nick Lothian made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Nick Lothian [ nlothian ]
        Nick Lothian made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s Current CVS [ 10731 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Michal Durdina made changes -
        Field Original Value New Value
        Attachment TIMESTAMP_20041116.patch_1.diff [ 18151 ]
        Michal Durdina created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Michal Durdina
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development