Edwin Shin | 1 Oct 16:45 2008

Re: API-M method addDatastream

Nils,

If you have a look at fedora.client.FedoraClient, you'll find the use of 
  the Fedora Upload Servlet (/fedora/management/upload), which accepts 
HTTP POSTs and returns an identifier you can use as the dsLocation for 
your subsequent add/modify datastream requests.

Eddie

On 09/29/2008 11:06 PM, Nils Weinander is rumored to have said:
> Nils Weinander wrote:
>> What am I doing wrong when api-m addDatastream always
>> fails with
>>
>> fedora.server.errors.GeneralException: Error with null
> 
> To try and answer my own question, the code in
> DefaultManagement.java indicates that I cannot
> add an empty data stream.
> 
>              if (controlGroup.equals("X")) {
>                  ds = new DatastreamXMLMetadata();
>                  ds.DSInfoType = ""; // field is now deprecated
>                  try {
>                      InputStream in;
>                      MIMETypedStream mimeTypedStream = null;
>                      if 
> (dsLocation.startsWith(DatastreamManagedContent.UPLOADED_SCHEME)) {
>                          in = getTempStream(dsLocation);
>                      } else {
(Continue reading)

Phil Cryer | 2 Oct 18:23 2008

500 error trying to hit ../fedora/search after a few days

I’ve seen this problem for awhile, so I want to see if it’s happening to others and learn how to fix it.  I’ve got fedora commons 3.0 running fine on my production server, scripts update things, and life is good, but after a few days if I try to hit: http://mbgserv18.mobot.org:8180/fedora/search I get the long error listed below and I assume fedora is down.  BUT if I link directly to an object like http://mbgserv18.mobot.org:8180/fedora/get/tropicos:85209 it looks fine, I can checkout the details on it, and everything works as it should, so fedora is not down.  Looking at the error it looks like it’s failing to talk to the database, but the database is still up, is on the same box, and is being monitored so I would know if it went down, or was even restarted (it hasn’t been).  Recycling tomcat resets things and I can once again hit fedora/search again no problem which tells me it’s something to do with how fedora is communicating with mysql.  Is this a known issue, or how can I debug this further? 

Thanks

P

500 Internal Server Error

Error querying sql db: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Broken pipe STACKTRACE: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2744) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723) at com.mysql.jdbc.Connection.execSQL(Connection.java:3250) at com.mysql.jdbc.Connection.execSQL(Connection.java:3179) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1207) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) at fedora.server.search.FieldSearchResultSQLImpl.(FieldSearchResultSQLImpl.java:129) at fedora.server.search.FieldSearchSQLImpl.findObjects(FieldSearchSQLImpl.java:332) at fedora.server.search.FieldSearchSQLModule.findObjects(FieldSearchSQLModule.java:163) at fedora.server.storage.DefaultDOManager.findObjects(DefaultDOManager.java:1903) at fedora.server.access.DefaultAccess.findObjects(DefaultAccess.java:673) at fedora.server.access.FieldSearchServlet.doGet(FieldSearchServlet.java:346) at fedora.server.access.FieldSearchServlet.doPost(FieldSearchServlet.java:698) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286) at java.lang.Thread.run(Thread.java:619) ** END NESTED EXCEPTION ** Last packet sent to the server was 0 ms ago.

fedora.server.errors.StorageDeviceException: Error querying sql db: Communications link failure due to underlying exception:

 

** BEGIN NESTED EXCEPTION **

 

java.net.SocketException

MESSAGE: Broken pipe

 

STACKTRACE:

 

java.net.SocketException: Broken pipe

        at java.net.SocketOutputStream.socketWrite0(Native Method)

        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2744)

        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612)

        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3250)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3179)

        at com.mysql.jdbc.Statement.executeQuery(Statement.java:1207)

        at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)

        at fedora.server.search.FieldSearchResultSQLImpl.(FieldSearchResultSQLImpl.java:129)

        at fedora.server.search.FieldSearchSQLImpl.findObjects(FieldSearchSQLImpl.java:332)

        at fedora.server.search.FieldSearchSQLModule.findObjects(FieldSearchSQLModule.java:163)

        at fedora.server.storage.DefaultDOManager.findObjects(DefaultDOManager.java:1903)

        at fedora.server.access.DefaultAccess.findObjects(DefaultAccess.java:673)

        at fedora.server.access.FieldSearchServlet.doGet(FieldSearchServlet.java:346)

        at fedora.server.access.FieldSearchServlet.doPost(FieldSearchServlet.java:698)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)

        at java.lang.Thread.run(Thread.java:619)

 

 

** END NESTED EXCEPTION **

 

 

 

Last packet sent to the server was 0 ms ago.

        at fedora.server.search.FieldSearchSQLImpl.findObjects(FieldSearchSQLImpl.java:339)

        at fedora.server.search.FieldSearchSQLModule.findObjects(FieldSearchSQLModule.java:163)

        at fedora.server.storage.DefaultDOManager.findObjects(DefaultDOManager.java:1903)

        at fedora.server.access.DefaultAccess.findObjects(DefaultAccess.java:673)

        at fedora.server.access.FieldSearchServlet.doGet(FieldSearchServlet.java:346)

        at fedora.server.access.FieldSearchServlet.doPost(FieldSearchServlet.java:698)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)

        at java.lang.Thread.run(Thread.java:619)

Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

 

** BEGIN NESTED EXCEPTION **

 

java.net.SocketException

MESSAGE: Broken pipe

 

STACKTRACE:

 

java.net.SocketException: Broken pipe

        at java.net.SocketOutputStream.socketWrite0(Native Method)

        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2744)

        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612)

        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3250)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3179)

        at com.mysql.jdbc.Statement.executeQuery(Statement.java:1207)

        at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)

        at fedora.server.search.FieldSearchResultSQLImpl.(FieldSearchResultSQLImpl.java:129)

        at fedora.server.search.FieldSearchSQLImpl.findObjects(FieldSearchSQLImpl.java:332)

        at fedora.server.search.FieldSearchSQLModule.findObjects(FieldSearchSQLModule.java:163)

        at fedora.server.storage.DefaultDOManager.findObjects(DefaultDOManager.java:1903)

        at fedora.server.access.DefaultAccess.findObjects(DefaultAccess.java:673)

        at fedora.server.access.FieldSearchServlet.doGet(FieldSearchServlet.java:346)

        at fedora.server.access.FieldSearchServlet.doPost(FieldSearchServlet.java:698)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at fedora.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)

        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)

        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)

        at java.lang.Thread.run(Thread.java:619)

 

 

** END NESTED EXCEPTION **

 

 

 

Last packet sent to the server was 0 ms ago.

        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2759)

        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612)

        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3250)

        at com.mysql.jdbc.Connection.execSQL(Connection.java:3179)

        at com.mysql.jdbc.Statement.executeQuery(Statement.java:1207)

        at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)

        at fedora.server.search.FieldSearchResultSQLImpl.(FieldSearchResultSQLImpl.java:129)

        at fedora.server.search.FieldSearchSQLImpl.findObjects(FieldSearchSQLImpl.java:332)

        ... 29 more

 

 

 

--

Phil Cryer | Open Source Development | MissouriBotanical Garden

www: http://mobot.org | latitude, longitude: 38.613877, -90.257943

email: phildotcryeratmobotdotorg | im googletalk/skype: phil.cryer

 

 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@...
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
Daniel Davis | 3 Oct 20:57 2008

Re: fedora gsearch download?

All of our software is available from Sourceforge.net:

https://sourceforge.net/project/showfiles.php?group_id=177054&package_id=219724 
<https://sourceforge.net/project/showfiles.php?group_id=177054&package_id=219724>

will access the GSearch downloads.  You do not need a Sourceforge 
account to get a download.

-- Dan

James Dixon wrote:
> Hi Daniel,
>
> Sorry to bother you, I've been trying to find a download link for the 
> fedoragsearch.war you mentioned in your wiki article.  I must be 
> blind, would you mind steering me in the right direction?  I've been 
> all over google and can only found an outdated link.  Here's the 
> article I'm referring to:
>
> http://fedora-commons.org/confluence/display/FCSVCS/Generic+Search+Service+2.1#GenericSearchService2.1-installation
>
> Thanks!
>
> James

--

-- 
Daniel W. Davis
Chief Software Architect, Fedora Commons
Researcher, Cornell Information Science
http://www.fedora-commons.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Tiago Cunha | 2 Oct 15:56 2008
Picon

METS xlink referencing a local file

Hey there fellow Fedora users!

I've been using Fedora for a week or so now and I am trying to 
understand what I can and can't do when ingesting files in Fedora.

I wanted to ingest a METS-Fedora-1.1 XML file with the digital object 
specifications together with a file to be stored as managed content 
under a datastream called IMAGE.
My problem is that I can't get the xlink:href property to point to a 
file stored locally in my system, only to a file referenced elsewhere 
through http.

            <METS:fileGrp ID="DATASTREAMS">
                  <METS:fileGrp ID="IMAGE" STATUS="A">
                        <METS:file ID="IMAGE1.0" MIMETYPE="image/gif" 
ADMID="TECHNICAL SOURCE RIGHTS" OWNERID="M" STATUS="A">
                              <METS:FLocat LOCTYPE="URL" 
xlink:href="location of my file, stored locally"
                            xlink:title="template: gif image"/>
                        </METS:file>
                  </METS:fileGrp>
            </METS:fileGrp>

Since the schema for METS-Fedora-1.1 mentions the file must be pointed 
in the xlink:href element, and since the xlink specs say the href 
atribute must be a valid URI, i presumed i could define the location of 
my file locally using file://location. Turns out Fedora refuses to 
ingest the object claiming that file: is an invalid protocol. I've also 
tried using a relative URI and simply pointing the absolute location of 
the file on my disk. However Fedora just says the URI is malformed when 
i try to ingest the object like this.

I know I have the alternative of simply embedding the file in question 
in the XML file, but i really wanted to avoid that as i could need to 
upload large files to the repository. So my question is: how can i 
reference a locally stored file in a METS-Fedora-1.1 xml document?

Thanks for reading, and sorry if the question has a really obvious answer!

Tiago

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Edwin Shin | 5 Oct 05:42 2008

Re: METS xlink referencing a local file

As you've noted, Fedora doesn't allow file URLs. The restriction is 
intended to prevent repository users from being able to access 
filesystem resources.

It might be worth revisiting this restriction: perhaps a configuration 
parameter to allow file urls that resolve to a particular directory. In 
the meantime, there isn't a supported means of referencing resources on 
the local filesystem. In the meantime, I can think of an ugly hack to 
work around this restriction which involves the Upload servlet, but I 
can't really recommend it.

On 10/02/2008 09:56 PM, Tiago Cunha is rumored to have said:
> Hey there fellow Fedora users!
> 
> I've been using Fedora for a week or so now and I am trying to 
> understand what I can and can't do when ingesting files in Fedora.
> 
> I wanted to ingest a METS-Fedora-1.1 XML file with the digital object 
> specifications together with a file to be stored as managed content 
> under a datastream called IMAGE.
> My problem is that I can't get the xlink:href property to point to a 
> file stored locally in my system, only to a file referenced elsewhere 
> through http.
> 
>             <METS:fileGrp ID="DATASTREAMS">
>                   <METS:fileGrp ID="IMAGE" STATUS="A">
>                         <METS:file ID="IMAGE1.0" MIMETYPE="image/gif" 
> ADMID="TECHNICAL SOURCE RIGHTS" OWNERID="M" STATUS="A">
>                               <METS:FLocat LOCTYPE="URL" 
> xlink:href="location of my file, stored locally"
>                             xlink:title="template: gif image"/>
>                         </METS:file>
>                   </METS:fileGrp>
>             </METS:fileGrp>
> 
> Since the schema for METS-Fedora-1.1 mentions the file must be pointed 
> in the xlink:href element, and since the xlink specs say the href 
> atribute must be a valid URI, i presumed i could define the location of 
> my file locally using file://location. Turns out Fedora refuses to 
> ingest the object claiming that file: is an invalid protocol. I've also 
> tried using a relative URI and simply pointing the absolute location of 
> the file on my disk. However Fedora just says the URI is malformed when 
> i try to ingest the object like this.
> 
> I know I have the alternative of simply embedding the file in question 
> in the XML file, but i really wanted to avoid that as i could need to 
> upload large files to the repository. So my question is: how can i 
> reference a locally stored file in a METS-Fedora-1.1 xml document?
> 
> Thanks for reading, and sorry if the question has a really obvious answer!
> 
> Tiago
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@...
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Shashank Sahni | 5 Oct 21:06 2008
Picon

Error.java.io.IOException: Request failed [500 Internal server error]

 I am using Fedora-commons for the first time. I did a quick installation. And the tutorial told me to first run fedor-admin.sh. After doing this i will see a login screen with the login name "fedoraAdmin" and since i haven't chaned any configuration the password should be "fedoraAdmin" but it isn't because whenever i do this it says.."Error.java.io.IOException: Request failed [500 Internal server error]"
Though i read the file named "install.properties" in $Fedora_home/install directory and it says that the db.username is "fedoraAdmin" and the db.password is "fedoraAdmin" it means the default setting is right and the password is "fedoraAdmin" but then why does it gives this error..Help please...

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@...
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
Shashank Sahni | 6 Oct 09:52 2008
Picon

inserting data into datastream...

I was reading the tutorial about making a document available in different formats and  they asked me to insert data into the datastream using import. I clicked at import and then an empty window popped up..Yes it had nothing in it..though the system didn't hanged i could resize it and even closed it without any problem but why was this like this..I mean how can i insert data if the window is empty (without any options)..Help please...
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@...
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
Tiago Cunha | 6 Oct 12:09 2008
Picon

METS xlink referencing a local file

Hey there fellow Fedora users!

I've been using Fedora for a week or so now and I am trying to
understand what I can and can't do when ingesting files in Fedora.

I wanted to ingest a METS-Fedora-1.1 XML file with the digital object
specifications together with a file to be stored as managed content
under a datastream called IMAGE.
My problem is that I can't get the xlink:href property to point to a
file stored locally in my system, only to a file referenced elsewhere
through http.

            <METS:fileGrp ID="DATASTREAMS">
                  <METS:fileGrp ID="IMAGE" STATUS="A">
                        <METS:file ID="IMAGE1.0" MIMETYPE="image/gif"
ADMID="TECHNICAL SOURCE RIGHTS" OWNERID="M" STATUS="A">
                              <METS:FLocat LOCTYPE="URL"
xlink:href="location of my file, stored locally"
                            xlink:title="template: gif image"/>
                        </METS:file>
                  </METS:fileGrp>
            </METS:fileGrp>

Since the schema for METS-Fedora-1.1 mentions the file must be pointed
in the xlink:href element, and since the xlink specs say the href
atribute must be a valid URI, i presumed i could define the location of
my file locally using file://location. Turns out Fedora refuses to
ingest the object claiming that file: is an invalid protocol. I've also
tried using a relative URI and simply pointing the absolute location of
the file on my disk. However Fedora just says the URI is malformed when
i try to ingest the object like this.

I know I have the alternative of simply embedding the file in question
in the XML file, but i really wanted to avoid that as i could need to
upload large files to the repository. So my question is: how can i
reference a locally stored file in a METS-Fedora-1.1 xml document?

Thanks for reading, and sorry if the question has a really obvious answer!

Tiago

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Ingest using FOXML



Hi all,

I am trying to ingest objects into Fedora using FOXML. I'd like to ingest also content using file on the File System. I did not find any other way but providing URL, instead Id' like to use file:/// ...

Please let me know if there is any way to accomplish this.

Thanks,
___________________________________________________________
Nikolay Gannev, M.S.E.
System Software Engineer


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@...
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
Ahmed Abdeen Hamed | 6 Oct 16:11 2008
Picon

Re: Ingest using FOXML

Hi Nikolay,
You need two steps:
1) Create a fedora object from FOXML using a StringBuffer or StringBuilder. Once you build the FOXML, you can pass it to the ingest method. Here is some java code :

String text = buffer.toString();

byte[] textToIngest = text.getBytes();

String newPID = apim.ingest(textToIngest, "info:fedora/fedora-system:FOXML-1.0", "Ingesting a new object...");

2) Add a datastream to the newly created object. Here is an example that was passed to me a while back by Chis Wilper. It is also available on the wiki:

apim.addDatastream(PID,  // PID

    DSID,       // Datastream ID

    new String[] {}, // Alt IDs 

    dsLabel, // Label

    true,            // Versionable

    "text/plain",    // MIME type

    null,            // Format URI

    tempURI,         // Datastream Location

    "M",             // Control Group

    "A",             // State

    null,            // ChecksumType

    null,            // Checksum

    "added a datastream by ahamed");  // Log message


Please note, the ingest method params in the above example will only work with fedora 3.0 or above.
Hope that helps,
Ahmed
-------------------------------------------------
Ahmed Abdeen Hamed
Scientific Informatics Project Leader
Marine Biological Laboratory at Woods Hole
(508)289-7676


On Mon, Oct 6, 2008 at 9:12 AM, Gannev, Nikolay (CDC/CCHIS/NCPHI) (CTR) <drx9-BfLPmQ7jcEE@public.gmane.org> wrote:


Hi all,

I am trying to ingest objects into Fedora using FOXML. I'd like to ingest also content using file on the File System. I did not find any other way but providing URL, instead Id' like to use file:/// ...

Please let me know if there is any way to accomplish this.

Thanks,
___________________________________________________________
Nikolay Gannev, M.S.E.
System Software Engineer



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@...
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Gmane