Menu
  • HOME
  • TAGS

Upgrading Alfresco Enterprise from 3.3.3 to 4.2.x - how do I verify which service packs have been applied?

Tag: alfresco

I am considering upgrading Alfresco to the latest version (4.2f) and the image below from Alfresco upgrade paths implies that this is possible.

We have Alfresco Enterprise version 3.3.3 installed.

How can I verify that the latest service pack has been applied for 3.3.x? Is there a list somewhere of service packs?

enter image description here

Best How To :

As an Enterprise customer, you can find the list of the most recent Alfresco releases by logging into the Alfresco Support console, and doing a search for articles of "alfresco enterprise [version number]". (There may be other ways too, but I tend to find finding older releases harder to locate as most of the links are setup for the current release)

From that, we discover that as of right now (early June 2014) the most recent releases are:

  • 3.3.5
  • 3.4.9.9
  • 4.0.2.9
  • 4.1.8
  • 4.2.2

You've said you're on 3.3.3, and want to head to 4.2. As such, you'll need to download Alfresco 3.3.5 (the most recent 3.3.x release), and follow the instructions in the release notes for that to upgrade from 3.3.3 to 3.3.5. At that point, you're then on the latest 3.3.x service pack, and can (after backups!) follow the instructions to upgrade to the latest 4.2.x release, currently 4.2.2

(Note that you mentioned Alfresco 4.2f in your question - that is an Alfresco Community release. As you're an Enterprise customer, you shouldn't upgrade to that, you should upgrade to the newest Alfresco Enterprise aka Alfresco One 4.2.x release)

Alfresco moving document

listener,alfresco,execution

Update your process defination with below code. var dest = companyhome.childByNamePath("Sites/main/documentLibrary/Execut"); for (var i = 0; i < bpm_package.children.length; i++) { bpm_package.children[i].move(dest); } You are using wrong path.Path for site is Sites/main/documentLibrary/Execut and not site/main/documentLibrary/Execut...

Uploading file with Python and Alfresco API

python,curl,upload,alfresco

You can use the very simple library Requests. import json import requests url = "http://localhost:8080/alfresco/service/api/upload" auth = ("admin", "admin") files = {"filedata": open("/tmp/foo.txt", "rb")} data = {"siteid": "test", "containerid": "documentLibrary"} r = requests.post(url, files=files, data=data, auth=auth) print(r.status_code) print(json.loads(r.text)) Output: 200 {'fileName': 'foo.txt', 'nodeRef': 'workspace://SpacesStore/37a96447-44b0-4aaa-b6ff-98dae1f12a73', 'status': {'code': 200, 'description': 'File uploaded...

how to set a variable in startevent in alfresco?

workflow,alfresco,activiti

Below is the code snippet which is working for me for using variable in next task. <startEvent id="startevent2" name="Start" activiti:initiator="${initiator.properties.userName}" activiti:formKey="aw:TransportManager"> <extensionElements> <activiti:executionListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"> <activiti:field name="script"> <activiti:string> <![CDATA[ execution.setVariable('aw_vehicle_number',...

Alfresco: Defining new Control-Params

forms,alfresco,alfresco-share

The variable which you are passing is defined in FTL file,which(FTL file) is referenced from share-config-custom.xml. Lets have deeper look. share-config-custom.xml Here Where we are declaring control parameter. <field-visibility> <show id="fieldName"/> </field-visibility> <appearance> <field id="fieldName" label="Name of Field"> <control template="/path/to/ftl/textarea.ftl" /> <control-param name="helpText">Description of field</control-param> </control> </field>...

How to create a rule in Alfresco to move content one folder to another?

javascript,alfresco

There are some properties which you need to set while credating rule.Explanation of those properties are as below. 1.When the rules will be triggered: - Items are created or enter this folder - Items are update - Items are deleted or leave this folder 2.criteria for the rule to be...

Alfresco : How to filter documents in workflow

java,workflow,alfresco,alfresco-share

I'm back with a solution even if I'm not sure if it's the best. Any way that solved my problem. I modified the method ObjectRenderer_renderCellAdd of object-finder.js to check if the user is the document coordinator and if there is no other active workflow linked to the document. Instead of...

Change the file name Alfresco

workflow,filenames,alfresco,business-process

I am find own solution this issue. Need to create execution listener in user task. Its code is: <extensionElements> <activiti:executionListener class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener" event="start"> <activiti:field name="script"> <activiti:string><![CDATA[ if (typeof execution.getVariableLocal('zvernennya_registrationnumber') != undefined) execution.setVariable('zvernennya_registrationnumber', execution.getVariableLocal('zvernennya_registrationnumber')); if (typeof...

Alfresco Java code to move documents to specific

alfresco,activiti

you can use fileFolderService to move any document.There is method in fileFolderService called move.You can fine more on this on below link. http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/model/FileFolderService.html For using filefolderService you need to inject that service.Ig you are using javabackend webscript you can do it like below in any context file. <bean id="webscript.{Path}.get" class="com.yaskawa.api.WebScript"...

Alfresco Java backed web-script lookup by cmis:objectId

alfresco,cmis,opencmis

Well, the answer is a little ugly, but hopefully this helps someone... A good way to look up the NodeRef using an 'opaque' objectId should be to use CMISServices, obtained from the registry in your java backed web script, i.e. docRef = registry.getCMISService().getLatestVersion(docIdStr, false); Unfortunately, there's a bug in the...

Just-installed Alfresco does not return a latestChangeLogToken: Is it OK in regard to the CMIS protocol?

alfresco,standards-compliance,cmis

No, it is not OK in regard to the CMIS specification. All requests to http://server/alfresco/api/-default-/public/cmis/versions/1.1/atom/changes MUST return a token when ChangeLog is enabled. From the CMIS 1.1 specification: 2.1.15.3 "Latest Change Token" repository information Repositories that support the changeLogToken event MUST expose the latest change log token (i.e. the change...

XML Parsing in Alfresco via Javascript

javascript,xml,alfresco

Ok, I have found the solution by myself. I hope this helps someone. var docXml = new XML(document.content); document.name = docXml.phoneEntry.name; ...

How to redefine Spring bean from default-synchronization-context.xml

java,spring,alfresco

It is the authentication.chain property which defines , from where we are fetching property file. Below URL is description of that. alfresco/extension/subsystems/Authentication/alfrescoNtlm/alfrescoNtlm1/mychanges.properties If you have noticed that alfrescoNtlm1 folder than,this folder name must match with the property value ldap1:ldap1,alfrescoNtlm1:alfrescoNtlm.(See Italic text) In case of context file you can define context...

How to hide default entries from create datalist menu in alfresco?

alfresco,alfresco-share

First thing ,which you need to consider is your alfresco version, as in the latest version of alfresco there are many changes.We should always put alfresco version in question. In alfresco version 4 or in nearer version you can consider below. Major code changes will be in Alfresco.component.DataList object(Component) of...

Alfresco: send workflow form data to custom datalist

workflow,alfresco,datalist

Yes this is possible. Regarding how you can do this,You can do this by defining custom action and calling it from alfresco javascript,which you will write in workflow. How you can define custom action ,that you can find from below link. https://wiki.alfresco.com/wiki/Custom_Actions In case of how you can call custom...

How to retrieve a content of Alfresco workflow?

javascript,alfresco,activiti

Finally, I resolve my questions using other RESTful URL. So, the steps to retrieve a content of a workflow is the next: 1. I get the package ID (this is a folder node) of the task of workflow: GET /alfresco/service/api/task-instances/activiti$taskID { "data": { "id": "activiti$taskID", "url": "api\/task-instances\/activiti$taskID", "name": "wf:taskName", "title":...

Add new mandatory aspect to locked node

javascript,alfresco

Using the fme JavaScript console, I've found a way to solve the problem. It is possible to disable behaviours on a node, include the behaviour that checks for the node being locked. Inside the JavaScript console, this code does what I want: var node = search.findNode(nodeRef); var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();...

alfresco selectone (dropdown list) not work

eclipse,forms,share,config,alfresco

All thanks, the problem is solved! It was necessary to manually add the path to the template file and describe the parameters in the file config-custom.xml (%Alfresco%\tomcat\shared\classes\alfresco\web-extension) It was: <field set="info" label-id="Value select" id="hire:valueselect"/> After the change: <field set="info" label-id="Value select" id="hire:valueselect"> <control template="/org/alfresco/components/form/controls/selectone.ftl"> <control-param...

Date.ftl - set current time

alfresco,alfresco-share

Changing existing date.ftl is not advisable.Instead of that you should create your own date control(you need to create both ftl and as well as javascript file),In that you need to change below things. Change in tomcat\webapps\share\components\form\date-picker.js file(this should be file which you have created for your custom control).In onReady() function...

Searching in Alfresco in all tenants

alfresco

I don't think its possible to search files or folders in all existing alfresco tenants.As far as I know tenants are designed for hiding visibility of document from one to another tenants.That is the main purpose for which tenant were introduced. So that single alfresco instance can be used for...

Access Alfresco Workflows I've started in JavaScript

javascript,workflow,task,alfresco,alfresco-share

You might want to drill in to the repository web scripts that do this to see how they work. For example, look at this: http://localhost:8080/alfresco/s/api/workflow-instances?initiator=admin&exclude=jbpm$wcmwf:*,jbpm$wf:articleapproval,activiti$publishWebContent,jbpm$publishWebContent,jbpm$inwf:invitation-nominated,jbpm$imwf:invitation-moderated,activiti$activitiInvitationModerated,activiti$activitiInvitationNominated&skipCount=0&maxItems=50&pooledTasks=false&state=COMPLETED That's what the "Workflows...

WCM replacement in alfresco 5.0

alfresco,wcm

I have worked with WCMQS (Quick Start) with Alfresco 4.2, so my experience is not covering Alfresco 5.x. Correct me if I am wrong, if you talk about replacing the WCM, it means you are interested in building a static web site. Altough wcmqs is a good product, I found...

Alfresco Share Dashlet(UserDashlet and SiteDashlet)

alfresco,alfresco-share

There are 3 values which can be specified in family tag of dashlet in Descriptor file. 1.<family>site-dashlet</family> - Dashlet will be visible on site dashboard only. 2.<family>user-dashlet</family> - Dashlet will be visible in user dashboard only. 3.<family>dashlet</family> - It will be visible in both the dashboard....

Run Alfresco SOLR in its own tomcat

tomcat,solr,alfresco

This is the issue because, tomcat instance has no xalan.jar file in class path. And this should be the content of solr.xml <?xml version="1.0" encoding="utf-8"?> <Context docBase="D:/alfresco/alf_data/solr/apache-solr-1.4.1.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="D:/alfresco/alf_data/solr" override="true"/> </Context> ...

How do I read the innerChild value using config.scoped?

alfresco,alfresco-share

Using config.scoped["all"]["SiteName"] gives you the sort object as result, which should be composed by two entries. Since accessing configuration is performed using the same techniques and syntax as any other model data, you should access the two distinct elements like this: var sortObj = config.scoped["all"]["SiteName"]; var msgVal0 = sortObj[0].msgVal; var...

Need to show help button on title bar of dashlet in alfresco

alfresco,alfresco-share

Try this may this works for you new Alfresco.widget.DashletTitleBarActions("${id}").setOptions( { actions: [ { cssClass: "help", bubbleOnClick: { message: "Information about dashlet" }, tooltip: "Display help for this dashlet" } ] }); Also add <#assign id = args.htmlid?js_string> at start of your ftl or change "${id}" to "${args.htmlid}" in above code....

Alfresco File Storage(alf_data)

java,ocr,alfresco,command-line-tool

You need to use the ContentService, specifically getReader(NodeRef,QName) then getContent(File) to a temporary file Your code would then be something like File tmp = File.createTempFile("for-ocr",".tmp"); ContentReader reader = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT); reader.getContent(tmp); // Run the OCR program here tmp.delete(); ...

How to feed site details on controller in dashlet in alfresco

alfresco,alfresco-share

There isn't a service on the Share side which provides that information, because the information you want is only held on the repository. As such, you'll need to call one of the REST APIs on the Repo to get the information you need Your code would want to look something...

alfresco-maven-plugin; truezip issues to pre-AMP a WAR

maven,alfresco

You were using an unsupported Maven version (in fact the Alfresco SDK 2.0.0 requires Maven 3.2.5 and above, see http://docs.alfresco.com/sdk2.0/tasks/alfresco-sdk-install-maven.html). This explains why you are seeing this problem which instead does not exist in properly tested configurations. Will close the related https://github.com/Alfresco/alfresco-sdk/issues/265 as well....

GetContentChanges returns “Unauthorized”

alfresco,cmis,opencmis,dotcmis

The problem was that the old CMIS URL http://[host]:[port]/alfresco/cmisatom was used. Solution: Replacing that URL in the configuration with the new CMIS URL http://[host]:[port]/alfresco/api/-default-/public/cmis/versions/1.0/atom solved the problem....

Alfresco: How to use ScriptNode processTemplate API without a document?

alfresco

Not quite understandning what you are after here, I however think this is possible (not sure why anyone would like to do it though.) You write your own class extending the BaseTemplateProcessorExtension, in that class you could write a method performing the stuff you want. public class MyTemplateProcessorExtension extends BaseTemplateProcessorExtension...

Run Alfresco Java code as Administrator

java,admin,alfresco,backend,runas

To detail the answer from Krutik, you should wrap code in a runAsSystem block like this: final permissionService = serviceRegistry.getPermissionService(); //Read the username of the current user final String loggedInUser = authenticationService.getCurrentUserName(); ChildAssociationRef childAssociationRef = nodeService.getPrimaryParent(actionedUponNodeRef); //Get the parent NodeRef NodeRef parent = childAssociationRef.getParentRef(); String fileName = (String) nodeService.getProperty(parent, ContentModel.PROP_NAME);...

Alfresco Share Customization for Advanced Search

alfresco,alfresco-share,advanced-search

The share config isn't correct. Take a look at https://wiki.alfresco.com/wiki/Share_Advanced_Search#Search_Forms You need to change the model-type of cm:content form id="search" with the aspect fields. I'm on the phone so the answer maybe short. --UPDATE-- You can't select an Aspect in the drop-down in the Advanced Search, the current implementation of...

OpenAM J2EE agent installation bringing down tomcat

alfresco,alfresco-share,openam,opensso

The error message is a bit misleading: the Cannot obtain application SSO token in general means that the agent was unable to authenticate itself. When you install the agent, the agent asks for a profile name and a password file, those values need to correspond to the agent profile configured...

Alfresco SSL handshake exception

tomcat,ssl,tomcat6,alfresco

Solr search engine which was introduced in alfresco had issue with it's certificate validity date, So all alfresco 4.0.x version has this issue which cause breaking of solr search. To fix that you need to follow steps mentioned in this forum post. https://forums.alfresco.com/forum/announcements/important-ssl-certs-solr-alfresco-4-expire-week-08152012-1307...

Alfresco Javascript Action to remove all cm:contains but primary parent

alfresco,alfresco-share

Found the answer by using the parent methods instead var primaryParent = document.parent; var parents = document.parents; for(var parent in parents){ if(parents[parent].nodeRef + "" !== primaryParent.nodeRef + ""){ parents[parent].removeAssociation(document, "cm:contains"); parents[parent].removeNode(document); } } ...

How to add a document to the Alfresco Repository with Java code?

java,alfresco

Luckily I have code for file upload thorugh JAVA backed webscript. Hope this help you too.To create java backed webscript see this Create one class named CustomFileUpload.java and put following content package com.upload; import org.springframework.extensions.webscripts.Cache; import org.springframework.extensions.webscripts.DeclarativeWebScript; import org.springframework.extensions.webscripts.Status; import org.springframework.extensions.webscripts.WebScriptRequest; import java.io.File; import java.io.IOException; import...

How to convert alfresco ant based project in alfresco5 maven based?

maven,ant,alfresco,alfresco-share

That totally depends on the ant build setup. But one good guess is that you will have to put the files residing in the "Alfresco" folder of your old project into different subfolders of the repo-amp, and the same way around with the "Share" folder. Most files will go into...

Alfresco share advanced search

alfresco,advanced-search

You just have to add : force="true" on aspect based property.See below code. <show id="ed:documentRegnum" force="true" /> ...

Alfresco - Difference between JavaScript API (Root Object) & JavaScript Services API

javascript,alfresco,ecm,web-scripting

As stated here Alfresco Javascript API The Alfresco JavaScript API allows script writers to develop JavaScript (ECMA Script) 1.7 compatible files that access, modify, and create Alfresco repository objects. This means you are able to extend and create new webscripts to interact with the Alfresco plaform. Moreover it provides some...

Alfresco custom data list layout

layout,alfresco,datalist,alfresco-share

You are entering wrong condition in <config> tag. Below <config evaluator="model-type" condition="orpdl:orpDataListModel"> should replace with <config evaluator="model-type" condition="orpdl:issuesList"> This will also apply to node-type. ...

Alfresco Custom Data List Type Text Field Help Text

forms,alfresco,ecm

Eeuh that's just a div in the control field for all the date fields. Take a look at alfresco/site-webscripts/org/alfresco/components/form/controls/date.ftl The message you see is in this div: <div class="format-info"> <span class="date-format">${msg("form.control.date-picker.display.date.format")}</span> <#if showTime><span class="time-format<#if disabled>-disabled</#if>">${msg("form.control.date-picker.display.time.format")}</span></#if> </div> So you want a string, just...

Can't add an add-on to my alfresco server 4.2.f

alfresco,alfresco-share,reset-password

The plugin which you are using is not designed for the latest version or version which you are using.There are some files which are changed in alfresco version 4.2f.I have designed new solution which is compatible with your version.There may be some designing issue, but you can change it in...

Debug Alfresco 4.2 Web scripts in Eclipse

eclipse,alfresco,alfresco-share

If you want to do this thing in eclipse below blow will help you in that case. Details are on middle of blog. http://axel-faust.de/?cat=3&lang=en There is also debugger available in alfresco and share ,in webscript servuce page. You will also find option for same in below url. http://localhost:8080/alfresco/service/index Click Refresh...

Error while creating an aspect in Alfresco

alfresco,alfresco-share

Your share-config-custom is incorrect. Below is full xml. <!-- Global config section --> <config replace="true"> <flags> <!-- Developer debugging setting to turn on DEBUG mode for client scripts in the browser --> <client-debug>false</client-debug> <!-- LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift). This...

Association control - access denied

alfresco,alfresco-share

copy /alfresco/templates/webscripts/org/alfresco/repository/forms/pickerresults.lib.ftl to the extension folder and change the following loop <#list results as row> { "type": "${row.item.typeShort}", "parentType": "${row.item.parentTypeShort!""}", "isContainer": ${row.item.isContainer?string}, "name": "${row.item.properties.name!""}", "title": "${row.item.properties.title!""}", "description": "${row.item.properties.description!""}", <#if row.item.properties.modified??>"modified":...

How to get the name of a document in Alfresco with SQL?

postgresql,alfresco

Based on the other anwsers I created this query: SELECT string_value AS document_name, audit_created AS creation_date FROM alf_node node INNER JOIN alf_node_properties ON (id=node_id) INNER JOIN alf_qname ON (qname_id=alf_qname.id) WHERE ns_id IN (SELECT ns.id FROM alf_namespace AS ns WHERE ns.uri='http://www.alfresco.org/model/content/1.0') AND local_name='name' AND audit_creator = 'admin' AND audit_created > '2015-05-06'...

Including third party AMP in main project in Alfresco Maven SDK, especially WCMQS

maven,alfresco,alfresco-share

Assuming you already have the external amps available to maven (either because their're on Maven Central repo or because they're installed locally), you simply add the external amps as dependencies in your amp project. E.g.: <dependency> <groupId>org.sharextras</groupId> <artifactId>javascript-console-repo</artifactId> <version>0.6.0</version> <type>amp</type> </dependency> You also must configure the maven dependency plugin. You...

JavaBehaviour NotificationFrequency

java,alfresco,alfresco-share

Using NotificationFrequency you can decide when the behavior should be invoked by specifying the appropriate NotificationFrequency. NotificationFrequency.EVERY_EVENT *This will be called every time when event is occurred.* NotificationFrequency.FIRST_EVENT *This will be called only once.* NotificationFrequency.TRANSACTION_COMMIT *This will be called when transaction is committed.* You will get more idea when you read content of below link.Also read the comment of Axel Faust....

How to configure `log4j` for `share-amp`

log4j,alfresco,alfresco-share

The locations you're mentioning seem to be taken from the Alfresco Repository extensions - logging guide, and not the Alfresco Share extensions section, which is why they're not working As far as I can check/remember, Share doesn't actually have (out of the box) a context file defining extensions/modules log4j files...

Alfresco 5.0.c with Active Directory

active-directory,alfresco,alfresco-share

This example from the 5.0 documentation should get you going. PS: The Admin Console is Enterprise Edition only....