Hello Steve and Fedora group,

Thanky you for your fast response.This sure seems like much better approach, no 
so much RAM consuming.
What bothers me is the fact I don't know how to reference datastreams on file 
system.
With use of API-M I know I can ingest with POST method via http like:

http://nukfedora:8080/fedora/objects/test:1/datastreams/stream1?controlGroup=M&dsLocation=file:/C:/fedora/datastream1.gif&dsLabel=datastream&versionable=true&dsState=A&checksumType=DISABLED&mimeType=image/gif";

Since with use of Fedora admin client it is possible to reference the file 
(datastream) when importing file it can be done.
Whaterver i put dsLocation (file:///, file:/, file:\, file:\\\ I always get an 
error). Our institution has several million scans to import and I would like to 
avoid putting all of the content in web site...

The error is : The underlying error was a java.io.FileNotFoundException  The 
message was  "C:\fedora\isci1.gif (The system cannot find the path specified)"  
.  "  .

If I put 

file:\\\C:/fedora/datastream1.gif  The POST does the job but in fedora the 
stream is empty (0 kb).

I found on Fedora site, that I should enable this rule in 
permit-apia-unrestricted.xml but I'm not sure if that's only thing to do.

<Rule RuleId="2" Effect="Permit">
    <Condition FunctionId="urn:oasis:names:tc:xacml:1.0:function:and">
      <Apply 
FunctionId="urn:oasis:names:tc:xacml:1.0:function:regexp-string-match">
        <AttributeValue 
DataType="http://www.w3.org/2001/XMLSchema#string";>^file:/fedora/.*$</AttributeValue>
        <Apply 
FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only">
          <ResourceAttributeDesignator 
AttributeId="urn:fedora:names:fedora:2.1:resource:datastream:fileUri" 
            DataType="http://www.w3.org/2001/XMLSchema#string"/>
        </Apply>
      </Apply> 
      <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in">
        <AttributeValue 
DataType="http://www.w3.org/2001/XMLSchema#string";>administrator</AttributeValue>
         
        <SubjectAttributeDesignator AttributeId="fedoraRole" 
DataType="http://www.w3.org/2001/XMLSchema#string"/>
      </Apply>    
    </Condition>
  </Rule>



Sorry for bothering again, but I'm a newbie regarding Fedora.. so thanks in 
advance!!

Best wishes


Matjaz

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to