Re: [dspace-tech] Re: Support for Google Analytics 4?

2022-07-27 Thread Cristobal Caris
Hi Alejandro,
Could you help me by sharing an example code please, we have a DSpace 6
Version ? I would greatly appreciate it.

Thanks!

El mié, 13 jul 2022 a la(s) 11:38, cristob...@gmail.com (
cristobal.ca...@gmail.com) escribió:

> Hi Alejandro,
> Could you help me by sharing an example code please? I would greatly
> appreciate it.
>
> Thanks!
>
>
> El jueves, 9 de junio de 2022 a la(s) 07:56:22 UTC-4,
> alejandr...@gmail.com escribió:
>
>> Hello,
>> I usually add Google Analytics code in the footer of Dspace pages.
>> What additional support are you looking for?
>>
>> On Wed, Jun 8, 2022 at 1:52 PM 'Tim Donohue' via DSpace Technical Support
>>  wrote:
>>
>>> Hi James,
>>>
>>> We recently had a ticket submitted about this for DSpace 7:
>>> https://github.com/DSpace/dspace-angular/issues/1672
>>>
>>> The quick answer is that GA4 is not currently supported, but I'd expect
>>> it to be supported in DSpace 7 prior to July 2023.  (Currently, we only
>>> support Universal Analytics as you pointed out.)
>>>
>>> That said, the ticket is currently waiting on a volunteer developer, so
>>> if anyone reading this is interested, please let us know on the ticket.
>>> Otherwise, I'll do my best to find a volunteer to solve this in either 7.4
>>> or 7.5 (both of which will be released prior to July 2023).
>>>
>>> Tim
>>>
>>> On Wednesday, June 8, 2022 at 10:18:30 AM UTC-5 james.m...@gmail.com
>>> wrote:
>>>
 p.s. Universal Analytics will stop processing new hits on July 1, 2023 (
 link
 ).
 If GA4 isn't currently supported in DSpace, is there a plan to support it
 in the future?

 On Wednesday, June 8, 2022 at 10:14:23 AM UTC-5 james.m...@gmail.com
 wrote:

> Hello,
>
> We are transitioning from Google's Universal Analytics (UA) to Google
> Analytics 4 (GA4) across our web properties.  Is GA4 supported by DSpace
> 6.x or 7.x?  It would appear from the DSpace documentation and
> configuration that only Universal Analytics is supported.  Any insight is
> welcomed!
>
> Thanks!
>
> James
> University of Alabama
>
 --
>>> All messages to this mailing list should adhere to the Code of Conduct:
>>> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
>>> ---
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/dspace-tech/5db0a5f1-1db3-48d7-8170-49018ae6b291n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/eba6ec75-5ece-4a12-bcec-92ce2d9a5ec9n%40googlegroups.com
> 
> .
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAH_s4ofTvuTmmPxSFGzvYvUrCpoOZ1rAc09hvKaTSw7j%3D%2BZFwA%40mail.gmail.com.


[dspace-tech] error on batch import

2022-07-27 Thread Abrish feker
I am currently trying to migrate Greenstone collections to the DSpace 
platform. I have exported the collections from greenstone in a type 
suitable for DSpace. but the following error happened when I try to import 
the items to DSpace. please I am stuck here with no help, any help will be 
appreciated.
 
Items to be imported: *9*
Items imported: *0*
*(show items)*

Error Message
java.io.FileNotFoundException: 
/dspace/imports/batchuploads/d2c89209-f6c9-4cc5-9c42-e96c0b9f3406/1658929079579/data_unzipped/HASH01a0.dir/dublin_core.xml
 
(No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.loadXML(ItemImportServiceImpl.java:1585)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.loadDublinCore(ItemImportServiceImpl.java:676)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.loadMetadata(ItemImportServiceImpl.java:661)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.addItem(ItemImportServiceImpl.java:480)
at 
org.dspace.app.itemimport.ItemImportServiceImpl.addItems(ItemImportServiceImpl.java:338)
at 
org.dspace.app.itemimport.ItemImportServiceImpl$2.run(ItemImportServiceImpl.java:1888)

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/730ede8f-237f-4142-a883-c749cac56191n%40googlegroups.com.


[dspace-tech] Re: ssh command with docker dspace-dependencies image

2022-07-27 Thread 'Tim Donohue' via DSpace Technical Support
Hi Stefan,

We didn't purposefully remove SSH, but I do see that recently we switched 
the `dspace-dependencies` image to use `openjdk:11-slim` instead of 
previously using `tomcat:9-jdk11`.  The primary reason was to create a 
smaller image, as that image doesn't need to have all of Tomcat on it.

So, I'd recommend just adding SSH to your image if you need it.  Or, if you 
wish, you can provide a PR back to DSpace to suggest similar modifications 
to the Dockerfile for this 
image: https://github.com/DSpace/DSpace/blob/main/Dockerfile.dependencies

Tim

On Tuesday, July 26, 2022 at 7:21:46 AM UTC-5 Stefan Fritzsche wrote:

> Dear community,
>
> we are using the CI tools provided by our GitLab for our deploy workflow. 
>
> However, our workflow builds a docker container using the 
> dspace/dspace-dependencies:dspace-7_x image. In this container it was 
> possible to run the ssh command "before" (about 8 months ago). 
> Unfortunately, this is no longer possible. Has the ssh command been removed 
> from the image?
>
> Regards,
> Stefan

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/3327424d-8cd7-4d28-a2d0-0da801f579ean%40googlegroups.com.


[dspace-tech] Re: 7x installation on Ubuntu fails with

2022-07-27 Thread 'Tim Donohue' via DSpace Technical Support
Hi Sandor,

You haven't given us enough information to help you out.  What version of 
Maven and Java are you using to compile DSpace 7? (Run "mvn -v" to find 
out.)

The error above is very generic, and it also doesn't say what is failing.  
So, as it notes in the ERROR messages you sent along, it recommends " To 
see the full stack trace of the errors, re-run Maven with the -e switch."  
So, you might want to try and re-run the same "mvn" command passing it the 
"-e" flag.  Maybe that will provide us with a better error message.

Feel free to send the results back to this thread on the mailing list if 
you need more help.

Tim

On Wednesday, July 20, 2022 at 12:58:47 PM UTC-5 basa...@gmail.com wrote:

> First native installation, followed the guide at 
> *wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace 
> * and source 
> downloaded from 
> *github.com/DSpace/DSpace/archive/refs/tags/dspace-7.3.tar.gz 
>  *fails 
> at the step 
> *mvn package *with 
> [INFO] 
> 
> [INFO] Reactor Summary for DSpace Parent Project 7.3:
> [INFO]
> [INFO] DSpace Parent Project .. SUCCESS [ 
> 14.177 s]
> [INFO] DSpace Services Framework :: API and Implementation  FAILURE [ 
>  8.932 s]
> [INFO] DSpace Kernel :: API and Implementation  SKIPPED
> [INFO] DSpace Addon Modules ... SKIPPED
> [INFO] DSpace Kernel :: Additions and Local Customizations  SKIPPED
> [INFO] DSpace IIIF  SKIPPED
> [INFO] DSpace OAI-PMH . SKIPPED
> [INFO] DSpace RDF . SKIPPED
> [INFO] DSpace SWORD ... SKIPPED
> [INFO] DSpace SWORD v2  SKIPPED
> [INFO] DSpace Server Webapp ... SKIPPED
> [INFO] DSpace Server Webapp:: Local Customizations  SKIPPED
> [INFO] DSpace Assembly and Configuration .. SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time:  23.836 s
> [INFO] Finished at: 2022-07-20T19:49:14+02:00
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project dspace-services: Compilation failure -> [Help 
> 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the 
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, 
> please read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn  -rf :dspace-services
>
> Maybe some prerequisites are missing? How to find out?
>
> Thanks in advance
>
> Sandor
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/3264e7b7-2fdc-45e5-acad-59f03dd9434en%40googlegroups.com.


[dspace-tech] Re: MediaViewer not displaying

2022-07-27 Thread 'Tim Donohue' via DSpace Technical Support
Hi,

The `mediaViewer` feature will only work for Items that have files that 
have a media type (mimetype) starting with "image/" or "video/".  So, 
"image/gif" would be supported, as would "video/mpg".  But, you would just 
see the regular thumbnails for all other items.

Also, make sure you are modifying the "config.prod.yml" file if you are 
running in production mode... similarly modify "config.dev.yml" if you are 
using dev mode.  You haven't clarified how you are building/running the UI.

If you find that it's still not working properly, you may want to check for 
errors in the UI layer (using your browser's DevTools).  See our 
Troubleshooting guide for more 
details: 
https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

If you need more help, let us know on this list.

Tim

On Thursday, July 21, 2022 at 3:35:50 AM UTC-5 mcasals...@gmail.com wrote:

> Hi,
>
> I want to test the image visualizer and ccording documentation in order to 
> display MediaViewer in the frontend I just have to change the 
> config/config.yml file with this:
>
> mediaViewer:
>   image: true
>   video: true
>
> The problem is that it's like Angular is ignoring the configuration and 
> keeps showing the thumbnail. I tried building again and also I used the 
> filter-media command just in case. Any idea if I have to run a command or 
> if I'm missing some config?
>
> Also I would like to know if someone managed to implement a PDF viewer for 
> the frontend. I know DSpace does not provide a built-in viewer but maybe 
> there is an unofficial implementation of that.
>
> Thanks in advance
>
>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/05720768-6708-4dae-ae0c-da719eabc8e4n%40googlegroups.com.


[dspace-tech] Re: error on batch import

2022-07-27 Thread 'Tim Donohue' via DSpace Technical Support
Hi,

It appears from that error that you are trying to use the DSpace "Simple 
Archive Format" (aka SAF) for the import.  However, the error says that one 
of your items is *missing* the required "dublin_core.xml"?   See the Simple 
Archive Format docs for details on that 
format: 
https://wiki.lyrasis.org/display/DSDOC6x/Importing+and+Exporting+Items+via+Simple+Archive+Format

It's unclear which version of DSpace you are using, and how you are 
attempting to run this import (via a user interface or via commandline, 
etc).  So, it's hard to give any more advice.  But, the basic error here 
appears to be saying that your Simple Archive Format isn't "valid".

If you need more help, let us know on this list & please provide us with 
more information about your DSpace setup and how you are running this 
import, etc.

Tim

On Wednesday, July 27, 2022 at 8:54:14 AM UTC-5 abris...@gmail.com wrote:

> I am currently trying to migrate Greenstone collections to the DSpace 
> platform. I have exported the collections from greenstone in a type 
> suitable for DSpace. but the following error happened when I try to import 
> the items to DSpace. please I am stuck here with no help, any help will be 
> appreciated.
>  
> Items to be imported: *9*
> Items imported: *0*
> *(show items)*
>
> Error Message
> java.io.FileNotFoundException: 
> /dspace/imports/batchuploads/d2c89209-f6c9-4cc5-9c42-e96c0b9f3406/1658929079579/data_unzipped/HASH01a0.dir/dublin_core.xml
>  
> (No such file or directory)
> at java.io.FileInputStream.open0(Native Method)
> at java.io.FileInputStream.open(FileInputStream.java:195)
> at java.io.FileInputStream.(FileInputStream.java:138)
> at java.io.FileInputStream.(FileInputStream.java:93)
> at 
> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
> at 
> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
> at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
> Source)
> at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown 
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
> at 
> org.dspace.app.itemimport.ItemImportServiceImpl.loadXML(ItemImportServiceImpl.java:1585)
> at 
> org.dspace.app.itemimport.ItemImportServiceImpl.loadDublinCore(ItemImportServiceImpl.java:676)
> at 
> org.dspace.app.itemimport.ItemImportServiceImpl.loadMetadata(ItemImportServiceImpl.java:661)
> at 
> org.dspace.app.itemimport.ItemImportServiceImpl.addItem(ItemImportServiceImpl.java:480)
> at 
> org.dspace.app.itemimport.ItemImportServiceImpl.addItems(ItemImportServiceImpl.java:338)
> at 
> org.dspace.app.itemimport.ItemImportServiceImpl$2.run(ItemImportServiceImpl.java:1888)
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/a334d84d-6a7a-44c4-bf89-f31f8e6d4fbdn%40googlegroups.com.


[dspace-tech] Re: 500 Service Unavailable

2022-07-27 Thread 'Tim Donohue' via DSpace Technical Support
Hi,

Is it possible that you are trying to access this Docker setup from a 
non-localhost URL?  If so, that'd be the the issue.  As we've noted, these 
images are not production ready, and while it would be possible to get them 
running on a non-localhost URL, they won't work that way out-of-the-box.  
The basic instructions you link to will only work when running the Docker 
images from localhost and accessing them from http://localhost:4000/ (and 
similar) in your web browser.

For any "production like" Docker setup, you will need to minimally modify 
the configuration of these running Docker containers.  We don't currently 
have detailed instructions on how to do this, because these images were all 
created for development purposes only.  More than likely, you'd need to 
startup the frontend & backend *separately* using the approach noted 
here: 
https://github.com/DSpace/DSpace/tree/main/dspace/src/main/docker-compose#run-dspace-7-rest-and-angular-from-local-branches

You'd also likely need to modify the configuration of the backend Docker 
container to allow it to run from a non-localhost URL.  This would require 
possibly creating a local.cfg in the [dspace-src]/dspace/config/ directory 
which would sync to the container, as described 
here:  
https://github.com/DSpace/DSpace/tree/main/dspace/src/main/docker-compose#modify-dspace-configuration-in-docker
 

Unfortunately, the reality here is that you are likely hitting issues 
related to the fact that these images aren't production ready.  While it 
**is possible** to run DSpace 7 on Docker in Production (and you could base 
your Production install on these images), you will need to likely modify 
the images or their configuration directly to do so...and we don't have 
instructions for that.  This is why we have the warning saying "These 
images are not production ready".

If you have more specific questions, or if I've misunderstood your setup, 
please let us know on this mailing list.  If I have misunderstood the 
issue, then you may need to debug the 500 error being returned by using the 
Troubleshooting 
guide: 
https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)
  
 This might require having to SSH into the running Docker container to see 
what is also in the DSpace logs.

Tim

On Monday, July 18, 2022 at 10:13:36 AM UTC-5 lawalola...@gmail.com wrote:

> I just completed a Docker installation for Dspace 7 using the 
> documentation 
> https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7#TryoutDSpace7-InstallviaDocker
>  
> on a live server. 
>
> I am trying to test installation as production (yes I know it is currently 
> not production ready) but unfortunately, I go the error below. From my 
> findings, I believe this could be the "No _links section found at..." error.
>
> Would appreciate some suggestions on how best to fix this.
>
> [image: Screenshot 2022-07-18 160747.png]
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/b9164810-8921-4fad-9080-d13b185c674bn%40googlegroups.com.


[dspace-tech] DS6 Database Question - "resourcepolicy" table

2022-07-27 Thread John Fitzgerald
Howdy, 

Would someone please clue me in on what the "action_id" field in the 
"resourcepolicy" table  is plugged into? I see no descriptive reference to 
it in any other tables. 

I'm trying to write some SQL-scripts to audit permissions on a large 
repository.

Thanks,
-John

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/5ba40dcc-e3a4-4218-809d-d88f2c1ff3a8n%40googlegroups.com.


Re: [dspace-tech] DS6 Database Question - "resourcepolicy" table

2022-07-27 Thread Sean Kalynuk
Hi John,

Some more info here:

https://wiki.lyrasis.org/display/DSDOC6x/Functional+Overview#FunctionalOverview-Authorization

Here’s a SQL case snippet you may find useful from one of my scripts:

case
when action_id=0  then 'READ'
when action_id=1  then 'WRITE'
when action_id=2  then 'DELETE'
when action_id=3  then 'ADD'
when action_id=4  then 'REMOVE'
when action_id=5  then 'WORKFLOW_STEP_1'
when action_id=6  then 'WORKFLOW_STEP_2'
when action_id=7  then 'WORKFLOW_STEP_3'
when action_id=8  then 'WORKFLOW_ABORT'
when action_id=9  then 'DEFAULT_BITSTREAM_READ'
when action_id=10 then 'DEFAULT_ITEM_READ'
when action_id=11 then 'ADMIN'
when action_id=12 then 'WITHDRAWN_READ'
else 'UNKNOWN'
end

Action constants are defined in this source file:

https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/core/Constants.java

--
Sean

From: dspace-tech@googlegroups.com  on behalf of 
John Fitzgerald 
Date: Wednesday, July 27, 2022 at 1:28 PM
To: DSpace Technical Support 
Subject: [dspace-tech] DS6 Database Question - "resourcepolicy" table
Caution: This message was sent from outside the University of Manitoba.

Howdy,

Would someone please clue me in on what the "action_id" field in the 
"resourcepolicy" table  is plugged into? I see no descriptive reference to it 
in any other tables.

I'm trying to write some SQL-scripts to audit permissions on a large repository.

Thanks,
-John
--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/5ba40dcc-e3a4-4218-809d-d88f2c1ff3a8n%40googlegroups.com.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/YT3PR01MB8164E5C80E08B08807036D61E8979%40YT3PR01MB8164.CANPRD01.PROD.OUTLOOK.COM.


Re: [dspace-tech] DS6 Database Question - "resourcepolicy" table

2022-07-27 Thread John Fitzgerald
Hey Sean!

Thank you for such a quick and useful response. I figured these keys were 
hiding somewhere in the source-code, but wasn't anxious to go digging.

This is perfect! And thanks also for the extra info. 

-John

On Wednesday, July 27, 2022 at 2:43:04 PM UTC-4 sean.k...@umanitoba.ca 
wrote:

> Hi John,
>
>  
>
> Some more info here:
>
>  
>
>
> https://wiki.lyrasis.org/display/DSDOC6x/Functional+Overview#FunctionalOverview-Authorization
>
>  
>
> Here’s a SQL case snippet you may find useful from one of my scripts:
>
>  
>
> case
>
> when action_id=0  then 'READ'
>
> when action_id=1  then 'WRITE'
>
> when action_id=2  then 'DELETE'
>
> when action_id=3  then 'ADD'
>
> when action_id=4  then 'REMOVE'
>
> when action_id=5  then 'WORKFLOW_STEP_1'
>
> when action_id=6  then 'WORKFLOW_STEP_2'
>
> when action_id=7  then 'WORKFLOW_STEP_3'
>
> when action_id=8  then 'WORKFLOW_ABORT'
>
> when action_id=9  then 'DEFAULT_BITSTREAM_READ'
>
> when action_id=10 then 'DEFAULT_ITEM_READ'
>
> when action_id=11 then 'ADMIN'
>
> when action_id=12 then 'WITHDRAWN_READ'
>
> else 'UNKNOWN'
>
> end
>
>  
>
> Action constants are defined in this source file:
>
>  
>
>
> https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/core/Constants.java
>
>  
>
> --
>
> Sean
>
>  
>
> *From: *dspac...@googlegroups.com  on behalf 
> of John Fitzgerald 
> *Date: *Wednesday, July 27, 2022 at 1:28 PM
> *To: *DSpace Technical Support 
> *Subject: *[dspace-tech] DS6 Database Question - "resourcepolicy" table
>
> *Caution:* This message was sent from outside the University of Manitoba.
>
>
> Howdy, 
>
>  
>
> Would someone please clue me in on what the "action_id" field in the 
> "resourcepolicy" table  is plugged into? I see no descriptive reference to 
> it in any other tables. 
>
>  
>
> I'm trying to write some SQL-scripts to audit permissions on a large 
> repository.
>
>  
>
> Thanks,
>
> -John
>
> -- 
> All messages to this mailing list should adhere to the Code of Conduct: 
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> --- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dspace-tech/5ba40dcc-e3a4-4218-809d-d88f2c1ff3a8n%40googlegroups.com
>  
> 
> .
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/b8a38c91-5a8b-4a2a-a063-8bbdc74c11c5n%40googlegroups.com.


RE: [dspace-tech] Re: ssh command with docker dspace-dependencies image

2022-07-27 Thread dcook via DSpace Technical Support
Hi Stefan,

 

As an aside, I’d be curious to hear how you’re using the Gitlab CI/CD tools 
with DSpace. 

 

Are you using “dspace/dspace-dependencies:dspace-7_x” image for the Gitlab 
Runner container and then SSHing to your target Docker host server to do your 
Docker deployment?

 

David Cook

Senior Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

From: 'Tim Donohue' via DSpace Technical Support  
Sent: Thursday, 28 July 2022 1:42 AM
To: DSpace Technical Support 
Subject: [dspace-tech] Re: ssh command with docker dspace-dependencies image

 

Hi Stefan,

 

We didn't purposefully remove SSH, but I do see that recently we switched the 
`dspace-dependencies` image to use `openjdk:11-slim` instead of previously 
using `tomcat:9-jdk11`.  The primary reason was to create a smaller image, as 
that image doesn't need to have all of Tomcat on it.

So, I'd recommend just adding SSH to your image if you need it.  Or, if you 
wish, you can provide a PR back to DSpace to suggest similar modifications to 
the Dockerfile for this image: 
https://github.com/DSpace/DSpace/blob/main/Dockerfile.dependencies

 

Tim

On Tuesday, July 26, 2022 at 7:21:46 AM UTC-5 Stefan Fritzsche wrote:

Dear community, 

we are using the CI tools provided by our GitLab for our deploy workflow. 

However, our workflow builds a docker container using the 
dspace/dspace-dependencies:dspace-7_x image. In this container it was possible 
to run the ssh command "before" (about 8 months ago). Unfortunately, this is no 
longer possible. Has the ssh command been removed from the image? 

Regards, 
Stefan

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/3327424d-8cd7-4d28-a2d0-0da801f579ean%40googlegroups.com
 

 .

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/081101d8a217%24ec8498d0%24c58dca70%24%40prosentient.com.au.


Re: [dspace-tech] DS6 Database Question - "resourcepolicy" table

2022-07-27 Thread John Fitzgerald
For my use, I ended up adding a table to the DB (posted here for 
future-reference), thanks again:


















*CREATE TABLE public."action" (action_id int4 NULL,verb varchar(50) 
NULL);INSERT INTO public."action" (action_id,verb) VALUES (0,'READ'),  
   (1,'WRITE'), (2,'DELETE'), (3,'ADD'), (4,'REMOVE'),
 (5,'WORKFLOW_STEP_1'), (6,'WORKFLOW_STEP_2'),
 (7,'WORKFLOW_STEP_3'), (8,'WORKFLOW_ABORT'),
 (9,'DEFAULT_BITSTREAM_READ'), (10,'DEFAULT_ITEM_READ'),
 (11,'ADMIN'), (12,'WITHDRAWN_READ');*
On Wednesday, July 27, 2022 at 2:46:30 PM UTC-4 John Fitzgerald wrote:

> Hey Sean!
>
> Thank you for such a quick and useful response. I figured these keys were 
> hiding somewhere in the source-code, but wasn't anxious to go digging.
>
> This is perfect! And thanks also for the extra info. 
>
> -John
>
> On Wednesday, July 27, 2022 at 2:43:04 PM UTC-4 sean.k...@umanitoba.ca 
> wrote:
>
>> Hi John,
>>
>>  
>>
>> Some more info here:
>>
>>  
>>
>>
>> https://wiki.lyrasis.org/display/DSDOC6x/Functional+Overview#FunctionalOverview-Authorization
>>
>>  
>>
>> Here’s a SQL case snippet you may find useful from one of my scripts:
>>
>>  
>>
>> case
>>
>> when action_id=0  then 'READ'
>>
>> when action_id=1  then 'WRITE'
>>
>> when action_id=2  then 'DELETE'
>>
>> when action_id=3  then 'ADD'
>>
>> when action_id=4  then 'REMOVE'
>>
>> when action_id=5  then 'WORKFLOW_STEP_1'
>>
>> when action_id=6  then 'WORKFLOW_STEP_2'
>>
>> when action_id=7  then 'WORKFLOW_STEP_3'
>>
>> when action_id=8  then 'WORKFLOW_ABORT'
>>
>> when action_id=9  then 'DEFAULT_BITSTREAM_READ'
>>
>> when action_id=10 then 'DEFAULT_ITEM_READ'
>>
>> when action_id=11 then 'ADMIN'
>>
>> when action_id=12 then 'WITHDRAWN_READ'
>>
>> else 'UNKNOWN'
>>
>> end
>>
>>  
>>
>> Action constants are defined in this source file:
>>
>>  
>>
>>
>> https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/core/Constants.java
>>
>>  
>>
>> --
>>
>> Sean
>>
>>  
>>
>> *From: *dspac...@googlegroups.com  on behalf 
>> of John Fitzgerald 
>> *Date: *Wednesday, July 27, 2022 at 1:28 PM
>> *To: *DSpace Technical Support 
>> *Subject: *[dspace-tech] DS6 Database Question - "resourcepolicy" table
>>
>> *Caution:* This message was sent from outside the University of Manitoba.
>>
>>
>> Howdy, 
>>
>>  
>>
>> Would someone please clue me in on what the "action_id" field in the 
>> "resourcepolicy" table  is plugged into? I see no descriptive reference to 
>> it in any other tables. 
>>
>>  
>>
>> I'm trying to write some SQL-scripts to audit permissions on a large 
>> repository.
>>
>>  
>>
>> Thanks,
>>
>> -John
>>
>> -- 
>> All messages to this mailing list should adhere to the Code of Conduct: 
>> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
>> --- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dspace-tech/5ba40dcc-e3a4-4218-809d-d88f2c1ff3a8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/bd7a3457-f9b3-48aa-941e-fb8d040a6d60n%40googlegroups.com.