mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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)
|
||||
{
|
||||
long expiry = System.currentTimeMillis() +
|
||||
ConfigurationManager.getLongProperty("websvc.opensearch.validity") * 60 * 60 * 1000;
|
||||
long expiry = ConfigurationManager
|
||||
.getLongProperty("websvc.opensearch.validity") * 60 * 60 * 1000;
|
||||
this.validity = new ExpiresValidity(expiry);
|
||||
}
|
||||
return this.validity;
|
||||
|
Reference in New Issue
Block a user