[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 at 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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fileformat.info%2Finfo%2Funicode%2Fchar%2F2013%2Findex.htm&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf023dda9cda44ba3b7d08d8482b91b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=GjNwqTgCZ1V0fdzI8xl24iIk%2FTADN4%2FVRQJiDjRHu7Q%3D&amp;reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fileformat.info%2Finfo%2Funicode%2Fchar%2F2013%2Findex.htm&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf023dda9cda44ba3b7d08d8482b91b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=GjNwqTgCZ1V0fdzI8xl24iIk%2FTADN4%2FVRQJiDjRHu7Q%3D&amp;reserved=0>).
> I'll attach the error log details at the bottom of this email.
>
> In elements the record has this message:
>
> [image: 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
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2F138.253.242.19%3A52591%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf023dda9cda44ba3b7d08d8482b91b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=qY4Rckq%2FxtSmUdyrTI1b%2Be0q3aFvNoVKB5vZWztAqDI%3D&amp;reserved=0>]
> *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: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf023dda9cda44ba3b7d08d8482b91b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=llRm0qSRTSMqQ4OVgxYTv%2Fv38483d%2FP3T3YlYI8ot5c%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Caf023dda9cda44ba3b7d08d8482b91b6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=RKHBEo47DqBruSXlYlpE0DnnnyKg8unYXjylrblgyd8%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200824/3e9d2e86/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 51768 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200824/3e9d2e86/attachment-0001.png