Skip to content
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

Fixes #4119 #4152

Closed
wants to merge 1 commit into from
Closed

Fixes #4119 #4152

wants to merge 1 commit into from

Conversation

magicsunday
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 28, 2021

Codecov Report

Merging #4152 (0298df8) into main (4ff9827) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #4152   +/-   ##
=========================================
  Coverage     25.85%   25.85%           
  Complexity    11209    11209           
=========================================
  Files          1572     1572           
  Lines         48270    48270           
=========================================
  Hits          12480    12480           
  Misses        35790    35790           
Impacted Files Coverage Δ
app/Module/InteractiveTreeModule.php 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ff9827...0298df8. Read the comment docs.

@fisharebest
Copy link
Owner

webtrees should only generate these URLs with an xref parameter.

This error only comes from search engines. It suggests that somewhere webtrees is generating a URL without the xref paramter.

This fix will get rid of the error messages - but I want to discover where this invalid URL is generated.

If a request does not include a mandatory parameter (and webtrees only generates valid URLs), the the request with the missing parameter should receive a 400 status error message.

There is a new Validation class which generates these exceptions.

@magicsunday
Copy link
Contributor Author

Do you mean something like this?

$xref = Validator::queryParams($request)->isXref()->requiredString('xref');

@fisharebest
Copy link
Owner

Do you mean something like this?

$xref = Validator::queryParams($request)->isXref()->requiredString('xref');

Yes.

fisharebest added a commit that referenced this pull request Jan 24, 2022
@fisharebest
Copy link
Owner

Do you mean something like this?
$xref = Validator::queryParams($request)->isXref()->requiredString('xref');

I have implemented this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants