EPrints Technical Mailing List Archive

Message: #08240


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Problem with eprints 3.4 file restricted


It would also be worth checking for any other triggers that might be doing things - in this case searching for:
EP_TRIGGER_URL_REWRITE

EP_TRIGGER_DOC_URL_REWRITE

 

In:
EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/
and
EPRINTS_PATH/lib/

If that search finds anything and you need help understanding what the trigger might be doing, ask on here!

 

Cheers,

John

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of David R Newman via Eprints-tech
Sent: 10 July 2020 09:39
To: Ajunk Pracetio <prazetyo@gmail.com>; EDER Norbert via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Subject: Re: [EP-tech] Problem with eprints 3.4 file restricted

 

Hi Agung Prasetyo Wibowo,

It does not look like the reason the file is accessible is due to caching and it does not sound like you have coversheets enabled which can cause some issues with file access.  As I said in a previous email you can check that EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/security.pl uses the correct method to lookup an IP address is

my $ip = $doc->repository->remote_ip();

(and not my $ip = $r->connection()->remote_ip();)

Beyond this, I think it is worth tailing you webserver log files whilst trying to download this file to see if you are getting any errors.  On RedHat/CentOS/Fedora this would be something like:

tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log

I am not sure if you have HTTPS enabled.  If you don't then you need not include ssl_error_log in the command line above.

Regards

David Newman

 

On 10/07/2020 09:30, Ajunk Pracetio wrote:

Hi,

 

Is there any file that I must check to make my file can be restricted?

 

Please need your help.

 

Thank you

 

Best regards.

Agung Prasetyo Wibowo

 

On Fri, Jul 10, 2020 at 9:13 AM Ajunk Pracetio via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:

Hi,

 

I already tried on other browser, but the file still can download.

 

On Thu, Jul 9, 2020 at 3:39 PM Yuri via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:

Hi!

  did you try with another browser? If it works, then If it was the same
browser, it is downloading from the cache even if you logout.

Il 09/07/20 09:59, Ajunk Pracetio via Eprints-tech ha scritto:
> Why is my eprints 3.4 when my document is restricted to user only, can
> still be downloaded.
>
> I have also read https://eur03.safelinks.protection.outlook.com/?url="">
> <
https://eur03.safelinks.protection.outlook.com/?url="">>
> and configured the suggested files, but the files can still be downloaded.
>
> Please help.
>
> Regards,
> Agung Prasetyo W.
>
> *** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url="">
> *** EPrints community wiki:
https://eur03.safelinks.protection.outlook.com/?url="">

*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

 

Image removed by sender.

Virus-free. www.avg.com