[ALF-21181] WebFramework in development mode gives blank page in Share admin console Created: 13-Nov-14  Updated: 22-Jan-16  Resolved: 22-Jan-16

Status: Closed
Project: Alfresco
Component/s: Web Scripts and Surf
Affects Version/s: 4.0 Enterprise
Fix Version/s: 4.0 Enterprise
Security Level: external (External user)

Type: Bug Priority: Critical
Reporter: Tahir Malik Assignee: Closed Issues
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

This is tested with swift HEAD r29902, mysql, macos dev machine, both on a new repo and with an upgraded repo.


Issue Links:
Cloners
is clone of ALF-9970 WebFramework in development mode give... Closed
Date of First Response:

 Description   

If you set the WebFramework in development mode the Share admin console doesn't render the ctool component that is created "on the fly" in /classes/alfresco/templates/console.js.
The end result is only a left pane listing the tools, view source and you have for ctools
<div id="unbound-region-ctool"></div>

To test, in web-extension create file share-config-custom.xml with

<alfresco-config>
<config replace="true">
<flags>
<client-debug>true</client-debug>
<client-debug-autologging>false</client-debug-autologging>
</flags>
</config>

<config evaluator="string-compare" condition="WebFramework">
<web-framework>
<autowire>
<mode>development</mode>
</autowire>
</web-framework>
</config>
</alfresco-config>

and restart.

If <mode> is changed to production, and share restarted, the admin console tools render properly again.



 Comments   
Comment by Tahir Malik [ 13-Nov-14 ]

Oeps, I thought I'd get a pop-up to fill in extra details .

I just wanted to re-open this issue on 4.2.x version as this hasn't been solved in it.

Comment by Kevin Roast [X] (Inactive) [ 02-Sep-15 ]

In 5.1 there is now no need to use 'development' mode in Share at all.

We have now hooked in the "debug" flag in the share-config-custom.xml to disable rhino script compilation and disable template caching for freemarker. So one flag set to false will now do all those things in addition to the usual disabling of client-side JS compression etc.

Comment by Kevin Roast [X] (Inactive) [ 02-Sep-15 ]

https://wiki.alfresco.com/wiki/Alfresco_Community_Edition_EA_201508_Release_Notes

Generated at Tue Aug 11 23:42:34 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.