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

CLONE - Javascript debugger causing an error when launched from the log4.properties

    Details

      Description

      This issue still reproduces on 5.1.1

      When using the debugger, at some moment it encounters the same error:

      Failed to load source from file:/Users/p3700621/work/alfresco/5.1.N/SOURCE/SHARE-5.1.1/share/target/share/WEB-INF/lib/lesscss-engine-1.5.1.jar!/META-INF/less.js: java.io.FileNotFoundException: /Users/p3700621/work/alfresco/5.1.N/SOURCE/SHARE-5.1.1/share/target/share/WEB-INF/lib/lesscss-engine-1.5.1.jar!/META-INF/less.js (No such file or directory)
      

      The cloned issue was fixed by patching the library.
      In march the library was updated to 1.5.1 but it doesn't contain our changes.

      See attached clip : ftp://ftp.alfresco.com/support/ltuca/mnt-16129.mov

      Cloned bug's description
      ------------------
      Steps to reproduce:
      Alfresco 5.0.x installation, change the following setting in

      [tomcat]/webaps/share/log4j.properties:

      log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=on

      and try to log in Share
      When loading the dashboard, the following error is logged (a few times per second):

      Failed to load source from file:/home/bblommers/Servers/alfresco-5.0.0.2-OOTB/tomcat/webapps/share/WEB-INF/lib/lesscss-engine-1.5.0.jar!/META-INF/less.js: java.io.FileNotFoundException: /home/bblommers/Servers/alfresco-5.0.0.2-OOTB/tomcat/webapps/share/WEB-INF/lib/lesscss-engine-1.5.0.jar!/META-INF/less.js (No such file or directory)

      And the page never loads.

      Workaround:
      it seems that during the bootstrap not all the dependencies are loaded when launching the JavaScript debugger from the log4. I have tried the standard method of on the API:
      http://127.0.0.1:8080/share/page/api/javascript/debugger
      from there it worked fine for me

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  ltuca Lucian Tuca
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 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, 1 hour
                    1d 1h

                      Structure Helper Panel