EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09355


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

Re: [EP-tech] Importing Restricted files - 401 Authorization Required


CAUTION: This e-mail originated outside the University of Southampton.

If they are web restricted, it is ok that they cannot be downloaded. I think you've to setup some sort of authentication. You can start from David advice:

https://www.eprints.org/eptech/msg08571.html

For example in Eprints 3.3.X:

https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/security.pl

you can allow access by the ip of the server that runs the script.

I think that it is better to import from file system, if possible.

Il 20/07/23 00:23, Eliseo Gatchalian via Eprints-tech ha scritto:
CAUTION: This e-mail originated outside the University of Southampton.

Hi all,

 

I’m trying to import an XML file but I’m getting 401 Authorization Required.  I had a look randomly on which files they are, and it looks like they are the ones that are restricted.

 

My command:

./import <reponame> --enable-web-imports eprints XML <XML Filename>

 

I also tried –migration option but same error below.

 

Error:

Failed to retrieve MailScanner has detected a possible fraud attempt from "reponame" claiming to be http://reponame/1739/1/ZI.doc: 401 Authorization Required

document.1110 failed to create subdataobj on document.files (See DataObj:create_from_data to override) at /usr/share/eprints/bin/../perl_lib/EPrints/DataSet.pm line 1013.

 

 

The enable_web_imports is enabled or set to 1.  Most of the items are imported successfully, it is only the restricted files that does not go across to the new server.

 

Anyone has encountered this and knows a fix? Or any help which can point me on the right direction to check would be much appreciated.

 

Thanks!

 

 

Best regards,

Ellis

 

 

Ellis Gatchalian

Systems Librarian

 

signature_122458240

 

Private Bag 3036, Waikato Mail Centre, Hamilton 3240
+64-(0)7-838 6399 ext. 8633

wintec.ac.nz

 

Ki te Kotahi te kākaho ka whati, ki te kāpuia, e kore e whati | Alone we are vulnerable, together we are invincible

 

signature_2970393053

 


This electronic mail transmission is intended for the named recipients only. It may contain private and confidential information. If this has come to you in error you must take no action based upon it, nor must you copy it or show it to anyone; please telephone or email the sender at Wintec immediately and return the original email. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening any attachment which may be included with this message.


*** 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/