Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 55614 invoked from network); 4 Feb 2010 19:33:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 19:33:37 -0000 Received: (qmail 99797 invoked by uid 500); 4 Feb 2010 19:33:37 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 99761 invoked by uid 500); 4 Feb 2010 19:33:37 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 99751 invoked by uid 99); 4 Feb 2010 19:33:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 19:33:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.86.168.183] (HELO mxout-08.mxes.net) (216.86.168.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 19:33:26 +0000 Received: from gv-out-0910.google.com (unknown [216.239.58.186]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 6A25A509DB for ; Thu, 4 Feb 2010 14:33:05 -0500 (EST) Received: by gv-out-0910.google.com with SMTP id e6so111127gvc.17 for ; Thu, 04 Feb 2010 11:33:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.102.214.19 with SMTP id m19mr994739mug.96.1265311983851; Thu, 04 Feb 2010 11:33:03 -0800 (PST) X-Originating-IP: [217.71.241.211] In-Reply-To: References: <5863FB4055D90542A7A7DAE0CEF2ACB0058390D82E@E2K7CCR1.netvigour.com> Date: Thu, 4 Feb 2010 20:33:03 +0100 Message-ID: Subject: Re: DAM Problem at buffy.bluegecko.net From: Reto Bachmann-Gmuer To: clerezza-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Oli Just for completeness, after getting and modifying the content.graph you should do a PUT do the same address you got the graph from. For example, if you did curl -u admin:admin -H "Accept: application/rdf+xml" http://localhost:8080/graph?name=3Dhttp://tpf.localhost/content.graph > sysgraph to GET the graph, you would do curl -u admin:admin -H "Content-Type: application/rdf+xml" -T sysgraph http://localhost:8080/graph?name=3Dhttp://tpf.localhost/content.gr= aph to PUT it back. The procedure described by Tsuy uses POST to add triples to the system graph, this works as by default there's no defaultBaseUri to modify an existing default base use you have to use GET and PUT analogously to the method descibred abobe for the content-graph. NOTE: The current ontology usage in the system graph is bogus, the property defaultBaseUri should not be on http://clerezza.org/2009/08/platform#Instance but on an instance of platform:Instance. Once this is fixed (I will post an issue) the subject of the defaultBaseUri statement will probably be a bnode this will render the post method impossible. Cheers, reto On Thu, Feb 4, 2010 at 6:38 PM, Tsuyoshi Ito wrote: > Hi Oli > > All UriRefs of the mediatypes' icons are hardcoded in the contentgraph: Y= ou can change these UriRefs (and also the UriRefs of existing images incl. = thumbnails) by get the contentgraph via GET (http://localhost:8080/graph?na= me=3Dhttp://tpf.localhost/content.graph) and change this UriRefs and than p= ost it to your instance =C2=A0(you can also use the backup service) > > Probably there is an easier way to do that? What to you think Manuel? > > The DefaultBaseUri of the instance can be changed by posting the followin= g triple to the system.graph of your instance. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-= syntax-ns#"> > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > > You can put it via curl > > curl -u admin:admin -F "graph=3D@/PATH_TO_RDF.rdf;type=3Dapplication/rdf+= xml" -F "name=3Dhttp://tpf.localhost/system.graph" -F "mode=3Dappend" http:= //YOUR_INSTANCE.org/graph > > On Feb 4, 2010, at 5:30 PM, Oliver Str=C3=A4sser wrote: > >> Today is installed all new bundles =C2=A0/ launcher on the buffy.bluegec= ko.net >> >> All is working very well . The only Problem is, that i can't see the upl= oaded image (no thumbnails, ... ) >> If want to create a thumbnail i got the following error message: >> >> Any Ideas ? >> >> >> at org.apache.clerezza.platform.content.representations.core.ThumbnailSe= rvice.getThumbnailUri(ThumbnailService.java:125) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invok= e0(Native Method) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invok= e(NativeMethodAccessorImpl.java:57) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.DelegatingMethodAccessorImpl.i= nvoke(DelegatingMethodAccessorImpl.java:43) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.jav= a:616) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.clerezza.triaxrs.RootResourceEx= ecutorImpl.handleWithMethod(RootResourceExecutorImpl.java:450) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.clerezza.triaxrs.RootResourceEx= ecutorImpl.execute(RootResourceExecutorImpl.java:119) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.clerezza.triaxrs.JaxRsHandler.h= andle(JaxRsHandler.java:468) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.wymiwyg.wrhapi.util.pathmappings.PathM= appingHandler$RegisteredHandler.handle(PathMappingHandler.java:127) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.wymiwyg.wrhapi.util.pathmappings.PathM= appingHandler.handle(PathMappingHandler.java:102) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.clerezza.platform.security.auth= .AuthenticatingFilter$1.run(AuthenticatingFilter.java:97) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.security.AccessController.doPrivilege= d(Native Method) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.security.auth.Subject.doAsPrivileged= (Subject.java:537) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.clerezza.platform.security.auth= .AuthenticatingFilter.handle(AuthenticatingFilter.java:93) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.wymiwyg.wrhapi.filter.impl.FilterRunne= r.handle(FilterRunner.java:56) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.clerezza.platform.xhtml2html.Xh= tml2HtmlFilter.handle(Xhtml2HtmlFilter.java:52) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.wymiwyg.wrhapi.filter.impl.FilterRunne= r.handle(FilterRunner.java:56) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.wymiwyg.wrhapi.osgi.OsgiWebServerFacto= ry$1.service(OsgiWebServerFactory.java:76) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.servlet.http.HttpServlet.service(Htt= pServlet.java:820) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.servlet.ServletHolder.ha= ndle(ServletHolder.java:502) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.servlet.ServletHandler.h= andle(ServletHandler.java:389) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.H= ttpServiceServletHandler.handle(HttpServiceServletHandler.java:64) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.servlet.SessionHandler.h= andle(SessionHandler.java:181) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.handler.ContextHandler.h= andle(ContextHandler.java:765) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.H= ttpServiceContext.handle(HttpServiceContext.java:111) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.J= ettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.handler.HandlerWrapper.h= andle(HandlerWrapper.java:152) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.Server.handle(Server.jav= a:326) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.HttpConnection.handleReq= uest(HttpConnection.java:534) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.HttpConnection$RequestHa= ndler.headerComplete(HttpConnection.java:864) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.HttpParser.parseNext(Htt= pParser.java:539) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.HttpParser.parseAvailabl= e(HttpParser.java:212) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.jetty.HttpConnection.handle(Ht= tpConnection.java:404) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.io.nio.SelectChannelEndPoint.r= un(SelectChannelEndPoint.java:409) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.mortbay.thread.QueuedThreadPool$PoolTh= read.run(QueuedThreadPool.java:520) >> > > Cheers > Tsuy > > >