mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
[DS-2342] fixes wrong validity object for opensearch responses (was valid for multiple years in every case)
This commit is contained in:

committed by
Ivan Masár

parent
a1438dd8ae
commit
5d9a767ac8
@@ -122,8 +122,8 @@ public abstract class AbstractOpenSearchGenerator extends AbstractGenerator
|
|||||||
{
|
{
|
||||||
if (this.validity == null)
|
if (this.validity == null)
|
||||||
{
|
{
|
||||||
long expiry = System.currentTimeMillis() +
|
long expiry = ConfigurationManager
|
||||||
ConfigurationManager.getLongProperty("websvc.opensearch.validity") * 60 * 60 * 1000;
|
.getLongProperty("websvc.opensearch.validity") * 60 * 60 * 1000;
|
||||||
this.validity = new ExpiresValidity(expiry);
|
this.validity = new ExpiresValidity(expiry);
|
||||||
}
|
}
|
||||||
return this.validity;
|
return this.validity;
|
||||||
|
Reference in New Issue
Block a user