Skip to content

Commit 305dabe

Browse files
Merge branch 'dspace-cris-2024_02_x' into task/dspace-cris-2024_02_x/DSC-2579_fix
# Conflicts: # dspace/config/spring/api/bitstore.xml
2 parents 9ad8d2a + 529c632 commit 305dabe

File tree

15 files changed

+30
-21
lines changed

15 files changed

+30
-21
lines changed

dspace-api/src/main/java/org/dspace/storage/bitstore/S3BitStoreService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class S3BitStoreService extends BaseBitStoreService {
9595
protected static final String DEFAULT_BUCKET_PREFIX = "dspace-asset-";
9696
protected static final Gson GSON = new GsonBuilder().serializeNulls().setPrettyPrinting().create();
9797
public static final String REGEX_SECRET = "^(.{3})(.*)(.{3})$";
98-
public static final long DEFAULT_EXPIRATION = Duration.ofMinutes(15).toSeconds();
98+
public static final long DEFAULT_EXPIRATION = Duration.ofMinutes(2).toSeconds();
9999
// Prefix indicating a registered bitstream
100100
protected final String REGISTERED_FLAG = "-R";
101101
/**

dspace-server-webapp/src/test/java/org/dspace/app/rest/BitstreamRestControllerIT.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
import org.dspace.content.Item;
8888
import org.dspace.content.service.BitstreamFormatService;
8989
import org.dspace.content.service.BitstreamService;
90-
import org.dspace.content.service.CollectionService;
9190
import org.dspace.core.Constants;
9291
import org.dspace.disseminate.CitationDocumentServiceImpl;
9392
import org.dspace.eperson.EPerson;
@@ -105,7 +104,6 @@
105104
import org.junit.Test;
106105
import org.mockito.Mockito;
107106
import org.springframework.beans.factory.annotation.Autowired;
108-
import org.springframework.context.ApplicationContext;
109107
import org.springframework.test.util.ReflectionTestUtils;
110108
import org.springframework.test.web.servlet.result.MockMvcResultHandlers;
111109

@@ -139,18 +137,9 @@ public class BitstreamRestControllerIT extends AbstractControllerIntegrationTest
139137
@Autowired
140138
private AuthorizeService authorizeService;
141139

142-
@Autowired
143-
private CollectionService collectionService;
144-
145140
@Autowired
146141
private BitstreamStorageService bitstreamStorageService;
147142

148-
@Autowired
149-
private S3BitStoreService s3BitStoreService;
150-
151-
@Autowired
152-
private ApplicationContext applicationContext;
153-
154143
// S3Mock related fields for integration testing
155144
private S3Mock s3Mock;
156145
private AmazonS3 amazonS3Client;

dspace/solr/audit/conf/schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</types>
8080

8181
<fields>
82-
<field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
82+
<field name="_version_" type="long" indexed="true" stored="true" docValues="true" multiValued="false"/>
8383
<field name="subject_uuid" type="string" indexed="true" stored="true" multiValued="false" />
8484
<field name="subject_type" type="string" indexed="true" stored="true" multiValued="false" />
8585
<field name="object_uuid" type="string" indexed="true" stored="true" multiValued="false" />

dspace/solr/authority/conf/solrconfig.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
<maxDocs>10000</maxDocs> <!--Commit every 10.000 documents-->
4747
<maxTime>${solr.autoCommit.maxTime:10000}</maxTime> <!--Commit every 10 seconds-->
4848
</autoCommit>
49+
50+
<updateLog>
51+
<str name="dir">${solr.ulog.dir:}</str>
52+
</updateLog>
4953
</updateHandler>
5054

5155
<!-- Settings for how Solr will process & respond to queries -->

dspace/solr/dedup/conf/schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482

483483
<fields>
484484

485-
<field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
485+
<field name="_version_" type="long" indexed="true" stored="true" docValues="true" multiValued="false"/>
486486
<!-- Valid attributes for fields:
487487
name: mandatory - the name for the field
488488
type: mandatory - the name of a previously defined type from the

dspace/solr/oai/conf/schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
</types>
116116

117117
<fields>
118-
<field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
118+
<field name="_version_" type="long" indexed="true" stored="true" docValues="true" multiValued="false"/>
119119
<!-- Item always present information -->
120120
<field name="item.id" type="uuid" indexed="true" stored="true" multiValued="false" />
121121
<field name="item.public" type="boolean" indexed="true" stored="true" multiValued="false" />

dspace/solr/oai/conf/solrconfig.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
<autoSoftCommit>
5656
<maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
5757
</autoSoftCommit>
58+
59+
<updateLog>
60+
<str name="dir">${solr.ulog.dir:}</str>
61+
</updateLog>
5862
</updateHandler>
5963

6064
<!-- Settings for how Solr will process & respond to queries -->

dspace/solr/ocr/conf/schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878

7979
<fields>
80-
<field name="_version_" type="long" indexed="true" stored="false" docValues="true" multiValued="false"/>
80+
<field name="_version_" type="long" indexed="true" stored="true" docValues="true" multiValued="false"/>
8181
<field name="id" type="string" multiValued="false" indexed="true" stored="true" required="true"/>
8282
<field name="ocr_text" type="text_ocr" multiValued="false" indexed="true" stored="true" />
8383
<field name="manifest_url" type="text_general" multiValued="false" indexed="true" stored="true" required="true"/>

dspace/solr/ocr/conf/solrconfig.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
<autoSoftCommit>
3434
<maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
3535
</autoSoftCommit>
36+
37+
<updateLog>
38+
<str name="dir">${solr.ulog.dir:}</str>
39+
</updateLog>
3640
</updateHandler>
3741

3842
<searchComponent class="de.digitalcollections.solrocr.solr.OcrHighlightComponent"

dspace/solr/qaevent/conf/schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186

187187
<fields>
188188

189-
<field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
189+
<field name="_version_" type="long" indexed="true" stored="true" docValues="true" multiValued="false"/>
190190

191191
<!-- The event source -->
192192
<field name="source" type="string" indexed="true" stored="true" omitNorms="true" />

0 commit comments

Comments
 (0)