[dspace-tech] Accessibility Checking of Submissions

2018-05-08 Thread George Kozak
Hello:
I was asked if DSpace is looking into adding accessibility checking to the
content that is submitted into the Repository.  Is this something on the
features to-do list?

-- 
***
George Kozak
Digital Library Specialist
Cornell University Library - IT
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
g...@cornell.edu

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Error deleting a collection

2018-05-08 Thread Stanislav Orlov
Hi Claudia,

I ran pg_dump, as you suggested (see attached), and it looks like all the 
three tables (collection2item, community2community, and 
community2collection) have 1 foreign key only each.  For instance, the 
error that I receive complains about comm2coll table not having the 
collection_fk and the old issue mentioned is suggesting to delete this 
foreign key from the table:

"$2" FOREIGN KEY (collection_id) REFERENCES collection(collection_id) 

So, if my table only has the "community_id" foreign key, this old thread 
doesn't seem to apply.  And if the fkey is not present to be deleted, is 
there another way of making DSpace not look for it?

Cheers,
Stan

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
-- PostgreSQL database dump
--

-- Dumped from database version 9.6.8
-- Dumped by pg_dump version 9.6.8

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;

--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--

CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;


--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
--

COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';


--
-- Name: breakpoint; Type: TYPE; Schema: public; Owner: -
--

CREATE TYPE public.breakpoint AS (
	func oid,
	linenumber integer,
	targetname text
);


--
-- Name: frame; Type: TYPE; Schema: public; Owner: -
--

CREATE TYPE public.frame AS (
	level integer,
	targetname text,
	func oid,
	linenumber integer,
	args text
);


--
-- Name: proxyinfo; Type: TYPE; Schema: public; Owner: -
--

CREATE TYPE public.proxyinfo AS (
	serverversionstr text,
	serverversionnum integer,
	proxyapiver integer,
	serverprocessid integer
);


--
-- Name: targetinfo; Type: TYPE; Schema: public; Owner: -
--

CREATE TYPE public.targetinfo AS (
	target oid,
	schema oid,
	nargs integer,
	argtypes oidvector,
	targetname name,
	argmodes "char"[],
	argnames text[],
	targetlang oid,
	fqname text,
	returnsset boolean,
	returntype oid
);


--
-- Name: var; Type: TYPE; Schema: public; Owner: -
--

CREATE TYPE public.var AS (
	name text,
	varclass character(1),
	linenumber integer,
	isunique boolean,
	isconst boolean,
	isnotnull boolean,
	dtype oid,
	value text
);


--
-- Name: getnextid(character varying); Type: FUNCTION; Schema: public; Owner: -
--

CREATE FUNCTION public.getnextid(character varying) RETURNS integer
LANGUAGE sql
AS $_$SELECT CAST (nextval($1 || '_seq') AS INTEGER) AS RESULT $_$;


SET default_tablespace = '';

SET default_with_oids = false;

--
-- Name: bi_2_dis; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.bi_2_dis (
id integer NOT NULL,
authority character varying(100),
value text,
sort_value text
);


--
-- Name: bi_2_dis_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.bi_2_dis_seq
START WITH 611
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: bi_2_dmap; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.bi_2_dmap (
map_id integer NOT NULL,
item_id integer,
distinct_id integer
);


--
-- Name: bi_2_dmap_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.bi_2_dmap_seq
START WITH 1050
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: bi_4_dis; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.bi_4_dis (
id integer NOT NULL,
authority character varying(100),
value text,
sort_value text
);


--
-- Name: bi_4_dis_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.bi_4_dis_seq
START WITH 1055
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: bi_4_dmap; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.bi_4_dmap (
map_id integer NOT NULL,
item_id integer,
distinct_id integer
);


--
-- Name: bi_4_dmap_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.bi_4_dmap_seq
START WITH 2003
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: bi_item; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.bi_item (
id integer NOT NULL,
item_id integer,
sort_1 text,
sort_2 text,
sort_3 text
);


--
-- Name: bi_item_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.bi_item_seq
START WITH 761

[dspace-tech] Error Importing Simple Archive Format item with multiple versions

2018-05-08 Thread mmorris
Hi,

I'm getting this error importing an items with multiple versions using 
DSpace 6.2:

read handle: '20.500.12111/1420.2'
java.lang.NullPointerException
at 
org.dspace.versioning.VersionHistoryServiceImpl.getVersion(VersionHistoryServiceImpl.java:112)
at 
org.dspace.identifier.VersionedHandleIdentifierProvider.restoreItAsVersion(VersionedHandleIdentifierProvider.java:257)
at 
org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:196)
at 
org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:117)
at 
org.dspace.content.InstallItemServiceImpl.installItem(InstallItemServiceImpl.java:71)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.addItem(ItemImportServiceImpl.java:516)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.addItems(ItemImportServiceImpl.java:338)
at 
org.dspace.app.itemimport.ItemImportCLITool.main(ItemImportCLITool.java:375)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
java.lang.NullPointerException

*Steps to reproduce:*

1- export an item with 2 or more versions:
dspace export --type=ITEM --id=20.500.12111/1420 --dest=/tmp/1420 --number=1
dspace export --type=ITEM --id=20.500.12111/1420.2 --dest=/tmp/1420 
--number=2

2- delete the item

3- import the item from the command line.
dspace import -a -e u...@email.com -c 20.500.12111/160 -s /tmp/1420 -m 
1420.map

Things i tried to confirm the initial export was successful:

- If i remove version 2 (folder 2) from /tmp/1420/ i can import the 
original version 20.500.12111/1420 without version 2
- If i change the handle number of version 2 inside the handle file to a 
new handle like 20.500.12111/1500 instead of 120.500.12111/1420.2 i'm able 
to import version 2 as a whole new item but that's not what i'm after. 

It seems like a bug to me, can anyone confirm this?

Regards,
Mike

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Error deleting a collection

2018-05-08 Thread Claudia Jürgen

Hello Stanislav,

you most likely did not run into the problem, because you never tried to delete 
anything. There might be issues with collection2item, community2community, too 
if my guess is right that this was this old issue:
http://dspace.2283337.n4.nabble.com/Dspace-tech-running-the-15-to-16-script-td3280357.html

Since  DSpace 5 there is a database command line tool which can
a) info about the db (including missing/faild migration)
b) repair the db (trying to run migrations)

But you are using 4.

I'm no DB expert just know some basic stuff so anybody out there knowing a 
tool/elegant solution?

At the moment you can compare your database with the database schema of DSpace, 
first identifying the discrepancies.
You can generate a description of your db with
pg_dump --schema-only --no-owner Your_Database_Name > YourDatabaseCreation.sql

If it is really only the above mentioned constraints which are screwed up, 
follow the instructions in the thread above, with the usual warning about 
backing up everything properly first.

Hope this helps

Claudia Jürgen

Am 07.05.2018 um 20:46 schrieb Stanislav Orlov:

Thank you Claudia,

We started ten years ago and went through a few upgrades. I can see how
this problem might have been created during the process, but we never ran
into the problem until now.  If I look at foreign keys for
community2collection table, I see this:

Name: community2collection_community_id_fkey
Fields: community_id
Referenced Schema: public
Referenced Table: community
Referenced Fields: community_id
On Delete: NO ACTION
On Update: NO ACTION

What do I need to do to fix this?

Stan




--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Error to tried to creating a community

2018-05-08 Thread Tim Donohue
Hi Manuel,

Could you provide us with more information about whether you upgraded or
whether this was a fresh install of DSpace 6.2?  I'd also recommend looking
closely at both your DSpace and Tomcat logs to see if any other errors are
occurring.

The error itself seems very odd, almost like it might be caused by a
configuration problem or Spring initialization error (which is why I'm
wondering if there are other errors in your log files).  It's saying
there's a NullPointerException on this line:
https://github.com/DSpace/DSpace/blob/dspace-6.2/dspace-api/src/main/java/org/dspace/content/CommunityServiceImpl.java#L120

That error doesn't make much sense to me, as that line is simply logging a
new "ADD" event -- and that shouldn't throw a NullPointerException unless
there are other issues, or you've customized the code in some way.

Please send us more information on the dspace-tech list, and hopefully we
can help figure out what is going on.

- Tim

On Mon, May 7, 2018 at 7:36 PM Manuel Hidalgo 
wrote:

> Hi,
>
> We finish to install dspace 6.2 but when we tried to create a community on
> dspace, shows this error and not create the community.
>
> Someone know how we can resolve that.
>
> Thanks
>
> PostgreSQL 9.6
> Dspace 6.2
> Tomca 8
> Java Runtime Environment Version:  1.8.0_161
> Java Runtime Environment Vendor:  OpenJDK 64-Bit Server VM
> Operating System Name:  Linux-Centos
> Operating System Architecture:  amd64
> Operating System Version:  3.10.0-693.21.1.el7.x86_64
>
>
> Java stacktrace: java.lang.NullPointerException at
> org.dspace.content.CommunityServiceImpl.create(CommunityServiceImpl.java:120)
> at
> org.dspace.content.CommunityServiceImpl.create(CommunityServiceImpl.java:71)
> at
> org.dspace.app.xmlui.aspect.administrative.FlowContainerUtils.processCreateCommunity(FlowContainerUtils.java:859)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498) at
> org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155) at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243) at
> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237) at
> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394) at
> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
> at
> org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
> at org.mozilla.javascript.Context.call(Context.java:538) at
> org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833)
> at
> org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1803)
> at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:698)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:94)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:82)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81)
> at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239)
> at
> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:186)
> at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:260)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:107)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
> at
> 

[dspace-tech] Re: Rest API not working in DSpace 6.2

2018-05-08 Thread Mark H. Wood
On Tuesday, March 6, 2018 at 4:19:03 PM UTC-5, George Kozak wrote:
>
> Hi, a while back I reported that I was having a problem with the Rest API 
> not working after we migrated to DSpace 6.2.  I have been trying to debug 
> this, and I wonder if the problem is the version of Java we are using.
> I am running postgres 9.4.15 with jdk1.7.0_55.
>
> I am thinking this is the case because one of the errors 
> is "java.lang.UnsupportedClassVersionError: org/postgresql/Driver : 
> Unsupported major.minor version 52.0 (unable to load class 
> org.postgresql.Driver)".
>
> Should I be running with java 8?
>
>

DSpace newer than 1.7 works well for me on Java 8.  I note that Oracle Java 
7 has been EOL for three years.

The error that you quoted is what you get when you run code compiled for 
Java 8 on an older JVM.  It appears that your PostgreSQL driver was 
compiled for Java 8, and JDK 7 won't load it.  You may be able to find a 
version that is compiled with JDK 7 at 
https://jdbc.postgresql.org/download.html

In your position, yes, I would upgrade to Java 8.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.