[dspace-devel] No response from REST API

2016-06-15 Thread Pantelis Karamolegkos
Added the following line in my server.xml and just to be sure, re-run mvn clean package and ant update. but still not able to get a response from the REST API (screenshot from request sent via postman rest client)

[dspace-devel] Re: No response from REST API

2016-06-15 Thread Pantelis Karamolegkos
Hi Andrea, many thanks. Commenting out the security-constraint element in web.xml did the work. Regards, P.K. On Wednesday, June 15, 2016 at 12:39:35 PM UTC+3, Pantelis Karamolegkos wrote: > > Added the following line in my server.xml > > docBase="/home/pkaramol/Worksp

[dspace-devel] Re: [Dspace-devel] Fwd: [Dspace-tech] How to search items by metadata using REST API?

2016-06-15 Thread Pantelis Karamolegkos
In the example below, why is metadata value null? Shouldn't it contain a dictionary with key-value pairs of metadata fields and values for the particular item? If not, how do we proceed with obtaining those values? *Request* POST /rest/items/find-by-metadata-field HTTP/1.1 Host: demo.dspace.org

[dspace-devel] Re: [Dspace-devel] Fwd: [Dspace-tech] How to search items by metadata using REST API?

2016-06-15 Thread Pantelis Karamolegkos
Thanks Anja. However using the following url formation in my request, still gives back the exact same response: https://demo.dspace.org/rest/items/find-by-metadata-field?expand=metadata (body and headers same as before) (I have also used 'all' instead of 'metadata'). Is my syntax wrong? Any i

[dspace-devel] Re: [Dspace-devel] Fwd: [Dspace-tech] How to search items by metadata using REST API?

2016-06-15 Thread Pantelis Karamolegkos
I just used this syntax https://demo.dspace.org/rest/items/find-by-metadata-field[?expand={all}] but this time I got a 405 - Method not Allowed error. P.K. On Thursday, August 20, 2015 at 11:32:06 PM UTC+3, Kim Shepherd wrote: > > > Hi all, > > This reminds me of a related issue I was thinking

[dspace-devel] Re: [Dspace-devel] Fwd: [Dspace-tech] How to search items by metadata using REST API?

2016-06-17 Thread Pantelis Karamolegkos
It seems that the expand parameter was not passed in during new Item creation on the findItemsByMetadataField method. https://github.com/DSpace/DSpace/pull/1442 On Thursday, August 20, 2015 at 11:32:06 PM UTC+3, Kim Shepherd wrote: > > > Hi all, > > This reminds me of a related issue I was thin

[dspace-devel] How to perform automated db migrations in stage / deployment server with Flyway DB

2016-06-29 Thread Pantelis Karamolegkos
Here is the scenario for automating deployment of dspace: - Code pushes (or branch merges) trigger automated tests in a CI server - If the test stage succeeds, then these are followed by the project build and the webapps folder is created We would like to automate the deployment of the process

[dspace-devel] Best way to find resource type from dspace_object_uuid?

2016-07-12 Thread Pantelis Karamolegkos
When viewing a table (say metadatavalue), what is the best way to find out what is the resource (type) of an entry, through the value dspace_object_id field? (e.g. whether its an item, a bundle, a collection etc etc?) (shouldn't there be a second column in dspaceobject, that indicates the reso

[dspace-devel] Re: Best way to find resource type from dspace_object_uuid?

2016-07-12 Thread Pantelis Karamolegkos
Ηi Claudia, I assume you are referring to the resourcepolicy table? Cause I think that's the only place I see a connection between dspaceobject(s) and resource types. (unless I am missing sth) Thanks, P.K. On Tuesday, July 12, 2016 at 3:28:33 PM UTC+3, Pantelis Karamolegkos wrote: >

[dspace-devel] Re: Best way to find resource type from dspace_object_uuid?

2016-07-12 Thread Pantelis Karamolegkos
join with resourcepolicy on dspace_object_id). (?) Thanks again for your time, Pantelis On Tuesday, July 12, 2016 at 3:28:33 PM UTC+3, Pantelis Karamolegkos wrote: > > When viewing a table (say metadatavalue), what is the best way to find > out what is the resource (type) of an entry, th

[dspace-devel] Re: Best way to find resource type from dspace_object_uuid?

2016-07-12 Thread Pantelis Karamolegkos
ime, Pantelis On Tuesday, July 12, 2016 at 3:28:33 PM UTC+3, Pantelis Karamolegkos wrote: > > When viewing a table (say metadatavalue), what is the best way to find > out what is the resource (type) of an entry, through the value > dspace_object_id field? (e.g. whether its an it

[dspace-devel] How to get db session in DSpace6?

2016-07-14 Thread Pantelis Karamolegkos
Trying to perform queries in DSpace6. I assume to do this, one needs to get the session, which (I also assume) is returned by the DBConnection object (?). However, the following code fails given that getDBConnection() method of Context has package level access (no modifier). Session session =

[dspace-devel] Re: How to get db session in DSpace6?

2016-07-14 Thread Pantelis Karamolegkos
b and allowing to perform queries? In any case, what is the way of the new API regarding db access? Thanks again, Pantelis On Thursday, July 14, 2016 at 1:42:37 PM UTC+3, Pantelis Karamolegkos wrote: > > Trying to perform queries in DSpace6. > > I assume to do this, one needs to get t

[dspace-devel] Re: How to get db session in DSpace6?

2016-07-18 Thread Pantelis Karamolegkos
w this join is actually carried out? Many thanks, Pantelis On Thursday, July 14, 2016 at 1:42:37 PM UTC+3, Pantelis Karamolegkos wrote: > > Trying to perform queries in DSpace6. > > I assume to do this, one needs to get the session, which (I also assume) > is returned by the DBC

[dspace-devel] Re: How to get db session in DSpace6?

2016-07-18 Thread Pantelis Karamolegkos
Forget about my last question, I just noticed its a field of the parent object DSpaceObject and it acts as OneToMany relation with the MetadataValue entity. Apologies for excessive posting! :) Pantelis On Thursday, July 14, 2016 at 1:42:37 PM UTC+3, Pantelis Karamolegkos wrote: > > Try

[dspace-devel] Lambdas in source code

2016-10-07 Thread Pantelis Karamolegkos
I wanted to use lambda expressions in dspace code. In the pom.xml of the parent project, I changed: 1.7 to 1.8 However in the relevant line of a jsp file I get the following error: javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to compile class for

[dspace-devel] Re: Lambdas in source code

2016-10-07 Thread Pantelis Karamolegkos
Τhanks Mark, that was really helpful. Regards, P.K. On Friday, October 7, 2016 at 5:36:34 PM UTC+3, Mark Wood wrote: > > Jasper runs at a different time, uses a different compiler, and is unaware > of anything set in the POM. If you want to use lambdas in JSP scriptlets, > you need to configu

[dspace-devel] Failing PluginServiceTest

2016-10-10 Thread Pantelis Karamolegkos
Any idea what might be the cause of that: *Results :* *Failed tests: * *org.dspace.core.PluginServiceTest.testGetNamedPlugin(org.dspace.core.PluginServiceTest)* * Run 1: PluginServiceTest.testGetNamedPlugin:67 Plugin 3 exists* * Run 2: PluginServiceTest.testGetNamedPlugin:67 Plugin 3 exists* *

[dspace-devel] Re: Failing PluginServiceTest

2016-10-11 Thread Pantelis Karamolegkos
] /home/pkaramol/Workspace/dspace/dspace-src/dspace/modules/additions/src/test/java/org/dspace/core/PluginServiceTest.java:[33,40] cannot find symbol* *[ERROR] symbol: class AbstractDSpaceTest* Does customization work for Test Classes? On Monday, October 10, 2016 at 5:50:18 PM UTC+3, Pantelis

[dspace-devel] Re: Failing PluginServiceTest

2016-10-11 Thread Pantelis Karamolegkos
Τhere seems to be a problem for the customized class with the visibility of all classes from org.dspace package within the test suite of kernel project. On Tuesday, October 11, 2016 at 12:51:39 PM UTC+3, Pantelis Karamolegkos wrote: > > The problem had to do with the PluginServiceTe

[dspace-devel] Servlet Api Issue

2016-10-20 Thread Pantelis Karamolegkos
When trying to override org.dspace.app.webui.jsptag.ItemTag class I get a compile-time error. Compiler cannot resolve the following dependencies: import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.tagext.TagSupport; By looking into the servlet-ap

[dspace-devel] Re: Servlet Api Issue

2016-10-20 Thread Pantelis Karamolegkos
) Thanks, P.K. On Thursday, October 20, 2016 at 3:54:27 PM UTC+3, Mark Wood wrote: > > On Thursday, October 20, 2016 at 8:11:25 AM UTC-4, Pantelis Karamolegkos > wrote: >> >> When trying to override org.dspace.app.webui.jsptag.ItemTag class I get >> a compile-time err