EPrints Technical Mailing List Archive

Message: #08298


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

Re: [EP-tech] Elemnets Message - Encoding - EN Dash


To answer my question regarding weird Elements behaviour...

It was a custom script on the EPrints side. It couldn't decode the special character. This particular script kicks in before the item is fully deposited. Embarrassingly, this isn't the first time I've been caught out by this, but there we are!

Thanks,
James

On Tue, Aug 4, 2020 at 4:47 PM James Kerwin via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:
Afternoon fellow EPrints enthusiasts,

I hope we're all well and handling the weirdness in suitable ways.

I've got a problem with an item being uploaded to EPrints from Elements via RT1.

It fails. It's specifically related to the Elements record, not the file, user, server etc.

I THINK it's an encoding problem with an EN DASH (https://www.fileformat.info/info/unicode/char/2013/index.htm). I'll attach the error log details at the bottom of this email.

In elements the record has this message:

image.png

I think it's this "–" on the first line between"Share Link" and "a personalized". Has anybody experienced something similar and am I likely on the right track? I know I SHOULD raise a ticket with Symplectic, but a more timely solution might involve me trying to fix it on the EPrints side.

Thanks,
James

Apache Log Error (specifically the bits in bold):

[Tue Aug 04 14:47:05.676639 2020] [perl:error] [pid 1624] [client 138.253.242.19:52591] Can't escape \\x{2013}, try uri_escape_utf8() instead at /opt/eprints3/perl_lib/URI/Escape.pm line 178.\n\tURI::Escape::_fail_hi('\xe2\x80\x93') called at /opt/eprints3/perl_lib/URI/Escape.pm line 171\n\tURI::Escape::uri_escape('To help you and the other authors access and share this work,...') called at (eval 176) line 81\n\tEPrints::Config::uolrepo::__ANON__('changed', 'HASH(0x7f78200a4da0)', 'repository', 'Symplectic::Wrappers::EPrintsSession=HASH(0x7f78184983d0)', 'dataobj', 'EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)', 'dataset', 'EPrints::DataSet=HASH(0x7f7818810388)') called at /opt/eprints3/perl_lib/EPrints/DataSet.pm line 1517\n\tEPrints::DataSet::run_trigger('EPrints::DataSet=HASH(0x7f7818810388)', 105, 'dataobj', 'EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)', 'changed', 'HASH(0x7f78200a4da0)') called at /opt/eprints3/perl_lib/EPrints/DataObj.pm line 669\n\tEPrints::DataObj::commit('EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)', undef) called at /opt/eprints3/perl_lib/EPrints/DataObj/EPrint.pm line 1011\n\tEPrints::DataObj::EPrint::commit('EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)') called at /opt/eprints3/perl_lib/Symplectic/RepoProcess/MetadataManager.pm line 355\n\tSymplectic::RepoProcess::MetadataManager::add_preferred_bibliographic('Symplectic::RepoProcess::MetadataManager=HASH(0x7f7819599098)', 'eprint', 'EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)', 'raw_record', 'XML::LibXML::Document=SCALAR(0x7f781f9e8428)', 'types', 'ARRAY(0x7f7816b18f28)', 'limit_to', 'ARRAY(0x7f78197d7540)', ...) called at /opt/eprints3/perl_lib/Symplectic/RepoProcess/MetadataManager.pm line 240\n\tSymplectic::RepoProcess::MetadataManager::add_bibliographic('Symplectic::RepoProcess::MetadataManager=HASH(0x7f7819599098)', 'eprint', 'EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)', 'publication', 'Symplectic::PubsModel::Publication=HASH(0x7f781eed8c58)') called at /opt/eprints3/perl_lib/Symplectic/RepoProcess/IngestWorkflow.pm line 203\n\tSymplectic::RepoProcess::IngestWorkflow::update_metadata('Symplectic::RepoProcess::IngestWorkflow=HASH(0x7f78190f0d70)', 'eprint', 'EPrints::DataObj::EPrint=HASH(0x7f781ef5cf60)', 'publication', 'Symplectic::PubsModel::Publication=HASH(0x7f781eed8c58)', 'auth_details', 'Symplectic::PubsModel::AuthDetails=HASH(0x7f782001cb68)', 'record', 'Symplectic::RepoModel::PublicationsRecord=HASH(0x7f78203b7e00)', ...) called at /opt/eprints3/perl_lib/Symplectic/RepoProcess/PublicationManager.pm line 65\n\tSymplectic::RepoProcess::PublicationManager::get_deposit_representation('Symplectic::RepoProcess::PublicationManager=HASH(0x7f781ef580c0)', 'publication', 'Symplectic::PubsModel::Publication=HASH(0x7f781eed8c58)', 'auth_details', 'Symplectic::PubsModel::AuthDetails=HASH(0x7f782001cb68)') called at /opt/eprints3/perl_lib/Symplectic/Process/FileDepositProcessor.pm line 148\n\tSymplectic::Process::FileDepositProcessor::handle('Symplectic::Process::FileDepositProcessor=HASH(0x7f781f8d8da8)', 'pid', 399719, 'auth_details', 'Symplectic::PubsModel::AuthDetails=HASH(0x7f782001cb68)', 'deposit_props', 'Symplectic::PubsModel::DepositProperties=HASH(0x7f781f9d31b0)', 'atom', 'CGI::File::Temp=GLOB(0x7f781ee18a08)', ...) called at /opt/eprints3/perl_lib/Symplectic/Handlers/RepositoryHandler.pm line 235\n\tSymplectic::Handlers::RepositoryHandler::post_handler('session', 'Symplectic::Wrappers::EPrintsSession=HASH(0x7f78184983d0)', 'request', 'Apache2::RequestRec=SCALAR(0x7f7820161f00)', 'auth_details', 'Symplectic::PubsModel::AuthDetails=HASH(0x7f782001cb68)') called at /opt/eprints3/perl_lib/Symplectic/Handlers/RepositoryHandler.pm line 109\n\tSymplectic::Handlers::RepositoryHandler::handler_multi('Apache2::RequestRec=SCALAR(0x7f7820161f00)', undef) called at /opt/eprints3/perl_lib/Symplectic/Apache/Rewrite.pm line 98\n\tSymplectic::Apache::Rewrite::__ANON__('Apache2::RequestRec=SCALAR(0x7f7820161f00)') called at -e line 0\n\teval {...} called at -e line 0\n

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