Skip to content

Conversation

@d00rman
Copy link
Contributor

@d00rman d00rman commented Oct 15, 2019

If a client is switching between wikitext and HTML and in one of the two
transforms they fail to provide the revision in the URI, trust that the
ETag is correct and try to retrieve the stashed content using the
information in the ETag. As a fall-back, though, try with the
client-supplied revision as well.

Bug: T235465

If a client is switching between wikitext and HTML and in one of the two
transforms they fail to provide the revision in the URI, trust that the
ETag is correct and try to retrieve the stashed content using the
information in the ETag. As a fall-back, though, try with the
client-supplied revision as well.

Bug: T235465
@Pchelolo
Copy link
Contributor

Something seemingly unrelated is breaking the tests!

@d00rman
Copy link
Contributor Author

d00rman commented Oct 15, 2019

Something seemingly unrelated is breaking the tests!

Random Cassandra failures. I've encountered these a number of times over the last period. Only the last set of tests is failing with Cassandra not responding. Restarted them. Locally all is good, ofc.

@d00rman d00rman merged commit 454a14b into wikimedia:master Oct 16, 2019
@d00rman d00rman deleted the parsoid/stash-rev-check branch October 16, 2019 03:29
d00rman pushed a commit to d00rman/restbase that referenced this pull request Oct 16, 2019
If a client is switching between wikitext and HTML and in one of the two
transforms they fail to provide the revision in the URI, trust that the
ETag is correct and try to retrieve the stashed content using the
information in the ETag. As a fall-back, though, try with the
client-supplied revision as well.

This is a port of wikimedia#1208 to the proxy branch.

Bug: T235465
d00rman pushed a commit to d00rman/restbase that referenced this pull request Oct 16, 2019
If a client is switching between wikitext and HTML and in one of the two
transforms they fail to provide the revision in the URI, trust that the
ETag is correct and try to retrieve the stashed content using the
information in the ETag. As a fall-back, though, try with the
client-supplied revision as well.

This is a port of wikimedia#1208 to the proxy branch.

Bug: T235465
d00rman pushed a commit that referenced this pull request Oct 28, 2019
If a client is switching between wikitext and HTML and in one of the two
transforms they fail to provide the revision in the URI, trust that the
ETag is correct and try to retrieve the stashed content using the
information in the ETag. As a fall-back, though, try with the
client-supplied revision as well.

This is a port of #1208 to the proxy branch.

Bug: T235465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants