Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-12440

Markup action attribute does not seem to work for replace

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 4.2.3.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      REHL,tomcat,postgres
    • Bug Priority:
      Category 2
    • ACT Numbers:

      00185016

      Description

      Description:

      In freemaker when using the tag markup with attribute action="replace" ie

      <@markup id="custom-upload-dependencies" target="js" action="replace" scope="global">

      The action is not respected.

      Steps to reproduce:

      • Install the latest alfresco 4.2 enteprise
      • copy the files dnd-upload-blacklisted.js & dnd-upload.get.html.ftl to the folder tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/com/myco/upload-blacklist/components/upload
        and the file upload-blacklist-module.xml to the folder tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/extensions. (all files attached to this jira)
      • Start alfresco
      • Login to alfresco share using chrome as the browser and click on the "Repository" link in the menu bar
      • Once the page loads in chrome open the developer tools (Menu>Tools>Developer tools)
      • On the developers tools click on the "Elements" tab and search for dnd-upload

      Expected Behavior:

      One entry with the replaced javascript should be listed ie

      <script type="text/javascript" src="/share/res/myco/modules/uploadBlacklist/dnd-upload-blacklisted.js"></script>

      Observed Behavior:

      Two dnd-upload javascript files are listed

      <script type="text/javascript" src="/share/res/myco/modules/uploadBlacklist/dnd-upload-blacklisted.js"></script>
      <script type="text/javascript" src="/share/res/components/upload/dnd-upload_59f8323c54d581115e1b1f40356a3bd9.js"></script>

      Analysis to date:

      Tried changing the action to "before", "after" and "notworking" to verify their behaviors, with before the upload-blacklisted javascript appears before the original upload javascript as expected. With after the upload-blacklisted javascript appears after the original upload javascript, with "notworking" the upload-blacklisted javascript does not appear at all but hte original upload javascript file does so it appears that these work as expected.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                jportillo Jose Portillo
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 6 hours, 30 minutes
                  1d 6h 30m

                    Structure Helper Panel