Batch processing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Batch processing

Ian Turton
I'm trying to use the batch editing options (under contributing), I can
choose my records, define my xpath and xml value but when I go to Apply
Changes, all I get is the option to save the changes? (process?) but no way
to actually make the change.

Looking in catalina.out gives me the following, which looks like a
permissions issue but I'm logged in as admin

2017-07-03 12:15:37,220 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - DispatcherServlet with
name 'spring' processing PUT request for
[/geonetwork/allerdale/api/records/batchediting]
2017-07-03 12:15:37,220 DEBUG
[org.springframework.orm.jpa.JpaTransactionManager] - Creating new
transaction with name [jeevesDispatchServlet]:
PROPAGATION_REQUIRED,ISOLATION_DEFAULT
2017-07-03 12:15:37,220 DEBUG
[org.springframework.orm.jpa.JpaTransactionManager] - Opened new
EntityManager [org.hibernate.jpa.internal.EntityManagerImpl@4de3ed96] for
JPA transaction
2017-07-03 12:15:37,221 DEBUG
[org.springframework.orm.jpa.JpaTransactionManager] - Exposing JPA
transaction as JDBC transaction
[org.springframework.orm.jpa.vendor.HibernateJpaDialect$HibernateConnectionHandle@7d04f3bf
]
2017-07-03 12:15:37,221 DEBUG
[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]
- Looking up handler method for path /api/records/batchediting
2017-07-03 12:15:37,221 DEBUG
[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]
- Returning handler method [public
org.fao.geonet.api.processing.report.IProcessingReport
org.fao.geonet.api.records.editing.BatchEditsApi.batchEdit(java.lang.String[],org.fao.geonet.api.records.model.BatchEditParameter[],javax.servlet.http.HttpServletRequest)
throws java.lang.Exception]
2017-07-03 12:15:37,222 DEBUG [jeeves.request] - Session created for client
: 90.222.25.67
2017-07-03 12:15:37,222 DEBUG
[org.springframework.web.cors.DefaultCorsProcessor] - Skip CORS processing,
request is a same-origin one
2017-07-03 12:15:37,225 DEBUG
[org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor]
- Read [class [Lorg.fao.geonet.api.records.model.BatchEditParameter;] as
"application/json;charset=UTF-8" with
[org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@1be58e89
]
2017-07-03 12:15:37,232 WARN
 [org.springframework.context.support.ResourceBundleMessageSource] -
ResourceBundle [messages] not found for MessageSource: Can't find bundle
for base name messages, locale eng
2017-07-03 12:15:37,233 DEBUG
[org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver]
- Resolving exception from handler [public
org.fao.geonet.api.processing.report.IProcessingReport
org.fao.geonet.api.records.editing.BatchEditsApi.batchEdit(java.lang.String[],org.fao.geonet.api.records.model.BatchEditParameter[],javax.servlet.http.HttpServletRequest)
throws java.lang.Exception]:
org.springframework.security.access.AccessDeniedException: Access is denied
2017-07-03 12:15:37,233 DEBUG
[org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver]
- Invoking @ExceptionHandler method: public org.fao.geonet.api.ApiError
org.fao.geonet.api.GlobalExceptionController.runtimeExceptionHandler(java.lang.Exception)
2017-07-03 12:15:37,233 DEBUG
[org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor]
- Written [org.fao.geonet.api.ApiError@76c1def5] as "application/json"
using
[org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@6c9d60c6
]
2017-07-03 12:15:37,233 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Null ModelAndView
returned to DispatcherServlet with name 'spring': assuming HandlerAdapter
completed request handling
2017-07-03 12:15:37,233 DEBUG
[org.springframework.orm.jpa.JpaTransactionManager] - Initiating
transaction commit
2017-07-03 12:15:37,233 DEBUG
[org.springframework.orm.jpa.JpaTransactionManager] - Committing JPA
transaction on EntityManager
[org.hibernate.jpa.internal.EntityManagerImpl@4de3ed96]
2017-07-03 12:15:37,234 DEBUG
[org.springframework.orm.jpa.JpaTransactionManager] - Closing JPA
EntityManager [org.hibernate.jpa.internal.EntityManagerImpl@4de3ed96] after
transaction
2017-07-03 12:15:37,234 DEBUG
[org.springframework.orm.jpa.EntityManagerFactoryUtils] - Closing JPA
EntityManager
2017-07-03 12:15:37,234 DEBUG
[jeeves.config.springutil.JeevesDispatcherServlet] - Successfully completed
request


Does any one have any clues? or is there some other way to insert some XML
based on an XPath expression?

Cheers

Ian

--
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Loading...