Hello
When one issue era solved another comes up.
The problem now is after upgrading from GN2 to GN3 the files that i´m trying
to download from the metadata comes with wrong url. It ends with
&access=public but are in the private folder. So if I change public to
private in the url the download works.
ETC:
http://geo.abds.is/geonetwork/srv/eng/resources.get?uuid=B4E08D7F-CBA3-4212-AFB8-CDD7196AAD4B&fname=CBMP-Terrestrial_Vegetation-Monitoring.png&access=public
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-1-access-private-vs-access-public-tp5215753.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Hi
I migrated database Postgres Geonetwork 2.10.4 to Geonetwork 3.0.1.
each metadata have online resource by download. I migrate the data directory
of my previous installation (Geonetwork 2.10.4) to
$TOMCAT/geonetwork/WEB-INF/data/data/metadata_data (Geonetwork 3.0.1). In
Geonetwork 3.0.1 I changed the config on section "Catalog server" --> Host:
192.168.16.39 (Local IP) and on "Batch process" I select all metadatas,
after select "URL replacer" for modify the URL prefix to search by
"http:192.168.16.39:8080/geonetwork". Save the changes, I access to any
metadata for see the content, tried download the online resource but get the
error:
<http://osgeo-org.1560.x6.nabble.com/file/n5215756/error404.png>
In the log of geonetwork:
2015-07-15 09:14:21,785 WARN
[org.springframework.context.annotation.CommonAnnotationBeanPostProcessor] -
Invocation of destroy method failed on bean with name 'SearchManager':
java.lang.NullPointerException
2015-07-15 09:16:22,342 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] -
HHH000388: Unsuccessful: alter table ServiceParameters add constraint
FK_t32t4xtdqmjhl8xmjpe95e474 foreign key (service) references Services
2015-07-15 09:16:22,343 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] -
ERROR: no hay llave primaria para la tabla referida «services»
2015-07-15 09:16:30,573 WARN [geonetwork.data.directory] - - Data
directory properties is not set. Use geonetwork.dir or geonetwork.dir
properties.
2015-07-15 09:16:30,573 WARN [geonetwork.data.directory] - - Data
directory provided could not be used. Using default location:
/opt/tomcat/webapps/geonetwork/WEB-INF/data
2015-07-15 09:16:30,677 WARN [jeeves.apphand] - Cannot initialize Z39.50
repositories because the file JZKitConfig.xml.tem could not be found in the
classpath
2015-07-15 09:16:30,678 ERROR [jeeves.apphand] - Repositories file
builder FAILED - Z3950 server disabled and Z3950 client services (remote
search, harvesting) may not work.
2015-07-15 09:16:31,049 WARN [geonetwork.schemamanager] - Cannot resolve
http://www.w3.org/2001/03/xml.xsd: will append last component to current
path (not sure it will help though!)
2015-07-15 09:16:31,281 WARN [geonetwork.schemamanager] - WARNING:
gco:Record is a global element without a type - assuming a string
2015-07-15 09:16:31,295 WARN [geonetwork.schemamanager] - WARNING:
schema-substitutions.xml has wiped out XSD substitution list for
gml:VerticalDatum
2015-07-15 09:16:31,305 WARN [geonetwork.schemamanager] - WARNING:
schema-substitutions.xml has wiped out XSD substitution list for
gml:CoordinateSystemAxis
2015-07-15 09:16:31,306 WARN [geonetwork.schemamanager] - WARNING:
schema-substitutions.xml has wiped out XSD substitution list for
gml:VerticalCS
2015-07-15 09:16:31,315 WARN [geonetwork.schemamanager] - WARNING:
schema-substitutions.xml has wiped out XSD substitution list for
gml:CoordinateSystemAxis
2015-07-15 09:16:32,847 WARN [geonetwork.schemamanager] - WARNING:
gco:Record is a global element without a type - assuming a string
2015-07-15 09:16:33,650 WARN [geonetwork.lucene] - Stopwords file with
incorrect ISO 639-2 language as filename: README
2015-07-15 09:18:36,699 WARN [geonetwork.resources] - Resource not found
images/logos/favicon.png, default resource returned:
/images/logos/favicon.png
2015-07-15 09:18:36,747 WARN [geonetwork.resources] - Resource not found
images/logos/favicon.png, default resource returned:
/images/logos/favicon.png
2015-07-15 09:18:45,020 WARN
[org.springframework.context.support.ResourceBundleMessageSource] -
ResourceBundle [messages] not found for MessageSource: Can't find bundle for
base name messages, locale es_ES
2015-07-15 09:18:52,266 ERROR [jeeves] - Error occurred within a transaction
ClientAbortException: java.net.SocketException: TuberÃa rota
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:407)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:371)
at
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:432)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:420)
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91)
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:84)
at
org.springframework.security.web.context.SaveContextOnUpdateOrErrorResponseWrapper$SaveContextServletOutputStream.write(SaveContextOnUpdateOrErrorResponseWrapper.java:431)
at org.springframework.util.StreamUtils.copy(StreamUtils.java:90)
at
org.springframework.http.converter.ByteArrayHttpMessageConverter.writeInternal(ByteArrayHttpMessageConverter.java:64)
at
org.springframework.http.converter.ByteArrayHttpMessageConverter.writeInternal(ByteArrayHttpMessageConverter.java:37)
at
org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:179)
at
org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:148)
at
org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:124)
at
org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:69)
at
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:122)
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at
jeeves.config.springutil.JeevesDispatcherServlet.access$001(JeevesDispatcherServlet.java:17)
at
jeeves.config.springutil.JeevesDispatcherServlet$1.doInTransaction(JeevesDispatcherServlet.java:30)
at
jeeves.config.springutil.JeevesDispatcherServlet$1.doInTransaction(JeevesDispatcherServlet.java:27)
at
jeeves.transaction.TransactionManager.runInTransaction(TransactionManager.java:63)
at
jeeves.config.springutil.JeevesDispatcherServlet.doDispatch(JeevesDispatcherServlet.java:24)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.fao.geonet.monitor.webapp.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter.doFilter(MetricsRegistryInitializerFilter.java:31)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
jeeves.config.springutil.PassthroughFilter.doFilter(PassthroughFilter.java:26)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
jeeves.config.springutil.MultiNodeAuthenticationFilter.doFilter(MultiNodeAuthenticationFilter.java:98)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at
jeeves.config.springutil.JeevesDelegatingFilterProxy.doFilter(JeevesDelegatingFilterProxy.java:64)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketException: TuberÃa rota
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366)
at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:240)
at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:84)
at
org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
at org.apache.coyote.Response.doWrite(Response.java:499)
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:402)
... 95 more
Thanks four your help
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-1-access-private-vs-access-public-tp5215753p5215756.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Hello,
I have the same problem, It ends with &access=private but the files are in
the private folder.
modify in url: &access=public by &access=private it works and I can download
the online resource.
I would modify the url in metadata field "Online resource", but not save the
change.
Regards.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-1-access-private-vs-access-public-tp5215753p5215759.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.