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

[EP-tech] login-only repository on Debian10



Hi Thomas,

Despite the mailserver behind the mailing list mangling all the URLs in 
your log extract, the issue is either that target_uri or repository_uri 
are not an object that can be called with the method host.? However, 
your log extract seems to indicate that both of these variables are set 
to URI::http objects that have the host method and should return the 
string sub.domain.de.? It would be useful to see your 10_core.pl in 
particular the values for $c->{host} and $c->{securehost}.? Also check 
that these values are not updated by another config file in the 
archive's cfg/cfg.d/ directory.? Maybe some debug before line 16 would 
also be useful:

print STDERR "ref target_uri: ". ref( $target_uri ) . " | target_uri 
host: " . $target_uri->host . " | ref repository_uri: " . ref( 
$repository_uri ) . " | repository_uri host: " . $repository_uri->host . 
"\n";

Albeit similar to your debug, hopefully this will avoid the mailserver 
mangling the URLs as this output should only include hostnames not 
URLS.? The output I got was:

ref target_uri: URI::https | target_uri host: ci.eprints-hosting.org | 
ref repository_uri: URI::https | repository_uri host: ci.eprints-hosting.org

Where I did not have any problems with login.? Admittedly this is on 
CentOS 7 and you are running Debian 10.? I never got round to finishing 
setting up my Debian 10 test EPrints repository, so I will revisit that 
and see if I can reproduce this issue.

Regards

David Newman

On 16/12/2020 19:26, th.lauke--- via Eprints-tech wrote:
> CAUTION: This e-mail originated outside the University of Southampton.
>
> Hi all,
> .
>> But after update to Debian10, the error message ...
> after some debugging I have the notion the update to EP 3.4.2 causes our problem:
>
>> Can't locate object method "host" via package "URI::_generic" at /usr/share/eprints/cgi/users/login line 16.
> Introducing some verbose messages in this routine I end up with
> $VAR1 = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsub.domain.de%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485869476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Fq1FZkbdA5rebF6u3kIQs7IQmp%2BYsv%2F2sMIWX08NbTE%3D&reserved=0';
> $VAR1 = '$target_uri';
> $VAR2 = bless( do{\(my $o = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsub.domain.de%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485869476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Fq1FZkbdA5rebF6u3kIQs7IQmp%2BYsv%2F2sMIWX08NbTE%3D&reserved=0')}, 'URI::http' );
> $VAR1 = '$repository_uri';
> $VAR2 = bless( do{\(my $o = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsub.domain.de%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485869476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Fq1FZkbdA5rebF6u3kIQs7IQmp%2BYsv%2F2sMIWX08NbTE%3D&reserved=0')}, 'URI::http' );
> $VAR1 = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsub.domain.de%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485869476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Fq1FZkbdA5rebF6u3kIQs7IQmp%2BYsv%2F2sMIWX08NbTE%3D&reserved=0';
> $VAR1 = 'Hi at redirect@EP::Repository: status\\n';
> $VAR2 = 302;
> $VAR1 = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsub.domain.de%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485869476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Fq1FZkbdA5rebF6u3kIQs7IQmp%2BYsv%2F2sMIWX08NbTE%3D&reserved=0';
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsub.domain.de%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485869476%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Fq1FZkbdA5rebF6u3kIQs7IQmp%2BYsv%2F2sMIWX08NbTE%3D&amp;reserved=0";>here</a>.</p>
> <hr>
> <address>Apache/2.4.38 (Debian) Server at sub.domain.de Port 80</address>
> </body></html>
> i.e. necessary redirections are not sufficiently ignored!?
>
> How to get the httpd information controlled, i.e. quieter?
> Is EP::Rewrite.pm the appropriate source?
>
> Many thanks for any suggestion in advance
> Thomas
>
> *** 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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485879470%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=sAnh%2ByXbahx1g3ewCBiICHhKCF89UETBeMlD1mo8f8Q%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485879470%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=87FnGCeOx3r8vDUrsaYtfN5qne3w30TfOkAb2yWx2Zc%3D&amp;reserved=0

-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88f3d57f166b4a64bfea08d8a203cc68%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637437484485879470%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=0sPb0a%2FdUDCqsG%2FNA3uo%2FUCTzRWgVKvjw01UOE1VaQY%3D&amp;reserved=0