-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when browsing raw source #1032
Comments
Has this now been fixed? |
it doesn't seem so (metacpan/metacpan-web#2564 however is fixed). just to be sure i tested with a newly uploaded release ( https://metacpan.org/dist/App-grep-url (0.002)) and https://metacpan.org/dist/Dist-Zilla like reported. issues:
i do think i narrowed down the issue for 1. & 3: it seems when you are in the raw browser, on a location that is a directory, like
and this directory does NOT contain a trailing slash, the "Parent Directory" link will move you up 2 directories. if you add a trailing slash to this directory (like https://fastapi.metacpan.org/source/PLICEASE/Alien-Build-2.41/lib/Alien/Build/Plugin/Extract/) - make sure to reload the page after you do this - the "Parent Directory" link moves you up 1 directory as expected. -- i don't want to make this report any more confusing - i think the 2 main issues are:
--
for issue 1. these are the request headers when using "Parent Directory" on https://fastapi.metacpan.org/source/RJBS/Dist-Zilla-6.023
and the response headers
with the response json {
"message" : "Can't call method \"set_class\" on an undefined value at /home/metacpan/carton/metacpan-api/lib/perl5/ElasticSearchX/Model/Index.pm line 80.\n"
} --
issue 2. (404 when using "Parent Directory" from a release containing an ending slash - https://fastapi.metacpan.org/source/RJBS/Dist-Zilla-6.023/ ) is also still present but could be as designed. when looking over the api code i didn't see anything to give a listing for /source of a particular user, nor is it mentioned in the api docs. --
both examples require
example 1 (no trailing / ) - incorrect: example 2 (with trailing / ) - correct: |
found / related to metacpan/metacpan-web#2564
point 1. is most likely a bug i think. for point 2. i'm not familiar enough with metacpan. i would have expected an overview of releases but this could just be as designed.
when browsing raw source, for example:
https://fastapi.metacpan.org/source/RJBS/Dist-Zilla-6.023
it's very important that your link does not contain a trailing slash!
and using the "Parent Directory" link, you get returned to https://fastapi.metacpan.org/source/
and get the following error:
"message" : "Can't call method \"set_class\" on an undefined value at /home/metacpan/carton/metacpan-api/lib/perl5/ElasticSearchX/Model/Index.pm line 80.\n"
if your link does contain a trailing slash:
https://fastapi.metacpan.org/source/RJBS/Dist-Zilla-6.023/
and you use the "Parent Directory" link, you get returned to https://fastapi.metacpan.org/source/RJBS/
and a:
The text was updated successfully, but these errors were encountered: