You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ran into this and spent some time debugging it. It seems the correct place to fix it is in the applyURI rule where the query params are added back in. I am sure the other rewrite rules also have the same issue.
For now we are working around the issue with the following class which does have matrix params properly loaded in jax-rs2. I do not know if this code handles every possible matrix param case, but it handles the ones we need. To use just make a jar with this class file and put it in the lib/ext directory.
public class MatrixParamRewritePatternRule extends RewritePatternRule {
public MatrixParamRewritePatternRule() {
super();
}
@Override
public void applyURI(Request request, String oldURI, String newURI) throws IOException
{
// hack in the matrix params
int matrixParamIndex = oldURI.indexOf(';');
if (matrixParamIndex > 0) {
newURI = newURI + oldURI.substring(matrixParamIndex);
}
super.applyURI(request, oldURI, newURI);
}
}
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.
We ran into this and spent some time debugging it. It seems the correct place to fix it is in the applyURI rule where the query params are added back in. I am sure the other rewrite rules also have the same issue.
For now we are working around the issue with the following class which does have matrix params properly loaded in jax-rs2. I do not know if this code handles every possible matrix param case, but it handles the ones we need. To use just make a jar with this class file and put it in the lib/ext directory.
The text was updated successfully, but these errors were encountered: