<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom transformation not able to read/write to/from temp in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81444#M54473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a newbie to both Alfresco and Tomcat, so forgive me if my question is a foolish one! However, I've intensively searched the internet and found no reference to my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to implement a custom content transformation based on the&amp;nbsp; RuntimeExecutableContentTransformer class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set up the appropriate .xml file and the transformer is loaded properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The invoked script (or executable) can't read and write the $target en $source files. ($CATALINA_HOME/temp/Alfresco/RuntimeExecutableContentTransformer_source_xxxxx.* and $CATALINA_HOME/temp/Alfresco/RuntimeExecutableContentTransformer_target_xxxxx.*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can however write to other files in this directory from the script, just not the ones created for that particular transformation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The files seem to be locked, but I can modify them by hand from the linux shell, even while the transformation-process is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco is running under the root-context. File permissions are set appropriately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the standard Tomcat/Alfresco 2.0 distributable with Debian Etch and MySQL 5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;K. Ayachi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2007 09:42:07 GMT</pubDate>
    <dc:creator>kayachi</dc:creator>
    <dc:date>2007-06-29T09:42:07Z</dc:date>
    <item>
      <title>Custom transformation not able to read/write to/from temp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81444#M54473</link>
      <description>Hello all,I'm a newbie to both Alfresco and Tomcat, so forgive me if my question is a foolish one! However, I've intensively searched the internet and found no reference to my problem.I'm trying to implement a custom content transformation based on the&amp;nbsp; RuntimeExecutableContentTransformer class.I've</description>
      <pubDate>Fri, 29 Jun 2007 09:42:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81444#M54473</guid>
      <dc:creator>kayachi</dc:creator>
      <dc:date>2007-06-29T09:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom transformation not able to read/write to/from temp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81445#M54474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our lead develloper solved the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We had to remove the single (or double) quotes around the variables in the following snippet of code in the .xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;entry key="Linux"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;value&amp;gt;/usr/local/bin/tif2txt.sh ${source} ${target}&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Turns out that alfresco already supplies the quotes when exploding the variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this example: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Content_Transformations" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Content_Transformations&lt;/A&gt;&lt;SPAN&gt; seems to be faulty (unless tidy handles this well)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This example: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Tiger_OCR_integration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Tiger_OCR_integration&lt;/A&gt;&lt;SPAN&gt; I'm not sure of, since I don't know how Windows handles this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps anyone with the same problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:32:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81445#M54474</guid>
      <dc:creator>kayachi</dc:creator>
      <dc:date>2007-07-03T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom transformation not able to read/write to/from temp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81446#M54475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello kayachi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for posting your resolution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, we have found that different flavours on Linux require different quoting mechanisms, or indeed no quotes as you have found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also that Windows does require quotes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a note in the Linux release notes about the problem for our config of ImageMagick but you probably would not have linked that to your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-transformation-not-able-to-read-write-to-from-temp/m-p/81446#M54475</guid>
      <dc:creator>steve</dc:creator>
      <dc:date>2007-07-03T10:42:28Z</dc:date>
    </item>
  </channel>
</rss>

