alfresco

How to get the mime type of a file after using file_get_contents from a remote server

不羁的心 提交于 2019-12-03 07:50:27
i'm reading a file from php from Alfresco and then outputting it to the browser. The only ptoblem is the mimetype or the extension of the file. This is the code i'm using: <?php ob_start(); //require_once("libs/FirePHPCore/fb.php"); require_once("libs/AlfrescoConnect.php"); $nomeFile = rawurldecode($_GET['nomeFile']); $urlDownload = $_GET['urlDownload']; $fileDownloadUrl = AlfrescoConnect::$serverPath. $urlDownload . "&attach=true&alf_ticket=".AlfrescoConnect::getTiket(); fb($fileDownloadUrl); $cnt = file_get_contents($fileDownloadUrl); header("Content-type: Application/octet-stream"); header(

java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind

匿名 (未验证) 提交于 2019-12-03 02:13:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Tomcat is running a webapp under Windows. After a few days (under very low load), the exception mentioned in the title starts to appear in the logs, no new connections can be established from that point on, the only fix is then to reboot the server. Environment: Latest Tomcat 6 Windows Server 2008 R2 JDK 6 update 30 SQL Server 2008 Kerberos authentication Evidence collected so far: netstat shows no excessive amount of connections ProcessExplorer shows no excessive amount of open file handles system main memory usage is average JVM heap usage

Using SSO alfresco automatically logged in LIferay Portal

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: how to use SSO in liferay portal if alfresco it is been integrated ? Meanwhile i have to login in liferay portal and again login in alfresco portlet and alfresco it is been integrated in liferay portal ?? Image of Alfresco_Liferay 回答1: Alfresco in the Cloud has SAML integration that can use an SSO identity provider. There is an enterprise SAML module for on-premise coming soon, or you can pay for consulting to get it earlier. Otherwise, perhaps you can do something with Alfresco External Authentication, and hook into an SSO solution that way

Alfresco RESTful Services to create custom metadata

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Actually we are building an authoring tool through which authors will prepare some assessment. Assessment can be kind of MCQ or Multiple choice. Now in that assessment image/audio/video can be a part of question as well as answers. Now to store all these assessment we will use alfresco repository. Now while storing or creating the assessment authors can define or create different custom properties for image file or any type of file. we have to provide those kind of facilities while creating the assessment to authors. Now our system can talk

Alfresco login api giving Bad Request 400

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to login to alfresco through api. I do not know why it is returning error 400 Bad Request. The json should be correct and in my ajax call I have also set the content type to 'application/json'. This is my ajax call. var jsonData = JSON.stringify({ username : usernameV, password : passwordV }); var request = $.ajax({ settings : {contentType:'application/json'}, type: "POST", url: "http://---ip---/alfresco/service/api/login", data: jsonData }); The json string in the console. {"username":"admin","password":"admin1"} Error 400 Bad

Activiti workflow: setting value of an aspect from StartTask

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to set a value from a text field on my start form and then pull this information on several other tasks. To do this, I'm using an aspect and trying to send the data up to the execution variable, and then pull it down. The problem is that I cannot send the value from the start form to the execution variable. As it is now, Share will just say that the workflow cannot be started. I am using Alfresco 4.2.f Community edition. The start event is defined in the BPMN as follows: <startEvent id="start" name="Start Delivery Ticket Workflow"

Which is easier to extend, Alfresco or Nuxeo? [closed]

只愿长相守 提交于 2019-12-03 00:17:42
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . I am considering doing a rewrite of an open source project from LAMP to J2EE and integrating it with an enterprise oriented CMS as the GUI . The two most viable OSS ECM J2EE CMS platforms that I have run across are Alfresco and Nuxeo . I need to get into some deep integration with whatever CMS I pick. Which one of these two technologies (or propose another that I don't know about)

Alfresco webscript to get the list of all files and folder with their size

梦想与她 提交于 2019-12-02 22:45:06
问题 Need a js based alfresco webscript to get the list of all folders and files recursively alond with their size. 回答1: CMIS Query: select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis:contentStreamLength>0 order by cmis:contentStreamLength desc HTTP GET: http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/ ?cmisselector=query &succinct=true &q=select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis

Connection with alfresco cmis

半世苍凉 提交于 2019-12-02 16:57:45
问题 I am trying to connect alfresco using config parameters but i am getting error: Config: sessionParameters.put(SessionParameter.USER, "admin"); sessionParameters.put(SessionParameter.PASSWORD, "admin"); sessionParameters.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/service/cmis"); sessionParameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); sessionParameters.put(SessionParameter.REPOSITORY_ID, "CIPBASE"); sessionParameters.put(SessionParameter.AUTH

How to get Acls of a document?

試著忘記壹切 提交于 2019-12-02 14:43:15
问题 I am have created document in repository... and I have set Acls Like below... public void setPermissionsToDocument(Session session, List<String> users, String documentPath) { List<String> permissions = new LinkedList<String>(); List<Ace> addAces = new LinkedList<Ace>(); // permissions.add(BasicPermissions.WRITE); permissions.add(PermissionService.TAKE_OWNERSHIP); for (String user : users) { Ace addAce = session.getObjectFactory().createAce(user, permissions); addAces.add(addAce); } Document