As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello!
Environment of work:
Activiti Enterprise 1.5 in Windows (Spanish installation)
Alfresco One 5.1 in Windows (Spanish installation)
When I retrieve folders and files from site has produced an error.
Retrieve sites is fine:
But if choice a site:
In Chrome:
I activated Activiti logs and...
2018-01-10 11:57:25,678 DEBUG [org.apache.chemistry.opencmis.client.bindings.spi.atompub.CmisAtomPubSpi] [http-nio-9080-exec-8] Initializing AtomPub SPI...2018-01-10 11:57:25,744 DEBUG [org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker] [http-nio-9080-exec-8] GET http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom?repositoryId=-default-2018-01-10 11:57:26,077 DEBUG [org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker] [http-nio-9080-exec-8] GET http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom/path?path=%2FSites%2Forganos-de-gobierno-scefc&filter=cmis%3AbaseTypeId%2Ccmis%3AcontentStreamLength%2Ccmis%3AcontentStreamMimeType%2Ccmis%3AlastModificationDate%2Ccmis%3AlastModifiedBy%2Ccmis%3Aname%2Ccmis%3AobjectId%2Ccmis%3AobjectTypeId%2Ccmis%3AversionSeriesId&includeAllowableActions=false&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=cmis%3Anone2018-01-10 11:57:26,100 DEBUG [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver] [http-nio-9080-exec-8] Resolving exception from handler [public com.activiti.model.common.ResultListDataRepresentation com.activiti.rest.runtime.integration.AlfrescoOnPremResource.getContentInSite(java.lang.String,java.lang.String)]: com.activiti.service.exception.BadRequestException: Error while getting site content
I test URL and I think this is the error:
If I change Sites for Sitios then work fine!
Then, possible cause: Activiti not use Sites/Sitios/... for Alfresco language.
Is there any way easy to change this in Activiti?
Note: Even if Alfresco is installed with the English installer, in a Windows in Spanish it always creates the sites as "Sitios".
Regards,
fegor
Well, the error is in a class: AlfrescoContentService, in method: getContentInSite(String userId, AlfrescoContext context, String siteId) {...}
This value is hardcoded!
public List<AlfrescoContent> getContentInSite(String userId, AlfrescoContext context, String siteId) { ... Folder siteObject = (Folder) cmisbe.getObjectByPath("/Sites/" + siteId, this.getSimpleOperationContext()); ArrayList content = new ArrayList(); ... }
I don't understant why this... 😞
The Alfresco installation in Windows (Spanish language) create '/Sitios' not '/Sites'. Is neccesary use internationalization with properties or variables please!
Thanks for raising this issue Fernando, not good! Could you please raise a case with Alfresco on this issue?
Ciju
Hi, Ciju:
I don't know where raise this case with Alfresco. In support.alfresco.com?
A workaround is change the name of Sitios to Sites:
In 'Edit properties'.
Fegor