File tree Expand file tree Collapse file tree 15 files changed +30
-21
lines changed
dspace-api/src/main/java/org/dspace/storage/bitstore
dspace-server-webapp/src/test/java/org/dspace/app/rest Expand file tree Collapse file tree 15 files changed +30
-21
lines changed Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change 8787import org .dspace .content .Item ;
8888import org .dspace .content .service .BitstreamFormatService ;
8989import org .dspace .content .service .BitstreamService ;
90- import org .dspace .content .service .CollectionService ;
9190import org .dspace .core .Constants ;
9291import org .dspace .disseminate .CitationDocumentServiceImpl ;
9392import org .dspace .eperson .EPerson ;
105104import org .junit .Test ;
106105import org .mockito .Mockito ;
107106import org .springframework .beans .factory .annotation .Autowired ;
108- import org .springframework .context .ApplicationContext ;
109107import org .springframework .test .util .ReflectionTestUtils ;
110108import 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 ;
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change 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 -->
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change 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 -->
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments