Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves issue #565 - Email if we find out too many downloads #772

Merged
merged 3 commits into from
Sep 12, 2017

Conversation

kosarko
Copy link
Member

@kosarko kosarko commented Jul 2, 2017

Should resolve issue #565 - Email if we find out too many downloads - (not tested)

Report if too many in short while
@kosarko kosarko added the Has PR label Jul 2, 2017
@kosarko
Copy link
Member Author

kosarko commented Aug 8, 2017

briefly tested;
In essence this keeps a List of urls (containing /bitstream) and a timestamp for each access to that url; the listed is purged (removing older timestamps than 10 min ago) periodically; if the size of the timestamp list goes over limit (30 by default, can be set with currentActivityAction.too_many_accesses.limit property) an email is send.

@kosarko kosarko merged commit 6a41121 into ufal:clarin-dev Sep 12, 2017
kosarko pushed a commit that referenced this pull request Nov 6, 2024
* Load netid from more than one header. authentication-shibboleth.netid-header could be list, not only single value

* Shibboleth login - sort the emails passed in the shibboleth email header and get the first one.

* The user is redirected to the login page when it is trying to update eperson email which is already assigned to another eperson.

* Sorting emails is moved into specific method and ShibbolethLoginFilter is updated following the ShibAuthentication changes

* Fixed failing tests

* The ClarinShibbolethLoginFilter and ClarinShibAuthentication has duplicate code, I put it into static method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants