You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set following settings in alfresco-global.properties file:
audit.enabled=true
audit.alfresco-access.enabled=true
audit.tagging.enabled=true
audit.dod5015.enabled=false
audit.alfresco-access.sub-actions.enabled=true
audit.filter.alfresco-access.default.enabled=false
Restart Alfresco to applay this change
Login as admin user
Enable audit dashlet
Create any content
ER: the "CREATE" action and other actions should display in the audit dashlet
AR: the "Data error" occurred
Root cause:
YAHOO.lang.JSON.useNativeParse set to true and Native.parse doesn't correct work with CREATE action JSON representation.
I fixed this by adding:
YAHOO.lang.JSON.useNativeParse = false;
to audit-application.js
But I think this is only WA and needs more effecient solution.
Please, fix this :)
The text was updated successfully, but these errors were encountered:
It's been years since i worked on this so my memory is a bit vague.
From the commit log i see 0.54 used the native JSON.parse and 0.55 switched back to using the previous, alfresco-provided, JSON parsing utility rather than JSON.parse, which is not available in all supported versions for this dashlet (that was the only change between the two releases)
It was a compromise to have a solution that works for all supported Alfresco versions.
4.2.f is also quite old.
It's unlikely i'll have time to investigate so if you can try with 0.54 or 0.55 and see if that makes a difference for you with JSON.parse (if it's available in your version/environment) ?
YAHOO.lang.JSON.useNativeParse would make the parser environment-specific so it doesn't sound like it can be generalized to everyone.
Would be good as well if you can investigate the raw JSON and see what the parser does not like.
Hi!
I faced with this problem on the Alfresco 4.2f.
TC:
audit.enabled=true
audit.alfresco-access.enabled=true
audit.tagging.enabled=true
audit.dod5015.enabled=false
audit.alfresco-access.sub-actions.enabled=true
audit.filter.alfresco-access.default.enabled=false
ER: the "CREATE" action and other actions should display in the audit dashlet
AR: the "Data error" occurred
Root cause:
YAHOO.lang.JSON.useNativeParse set to true and Native.parse doesn't correct work with CREATE action JSON representation.
I fixed this by adding:
YAHOO.lang.JSON.useNativeParse = false;
to audit-application.js
But I think this is only WA and needs more effecient solution.
Please, fix this :)
The text was updated successfully, but these errors were encountered: