Conversation
665ece0 to
4f5d845
Compare
8aa8d0e to
fde26cd
Compare
c1c6693 to
0fc7a4a
Compare
|
The LogoutTest.php is failing because it gets a redirect which is not seen as success, https://github.com/symfony/symfony/blob/b066d276a261458c1ad93d9418c424a8ebefac25/src/Symfony/Component/HttpFoundation/Response.php#L1184 That can work if replaced with |
|
I think the IndexTest.php are failing because the sendContent in RunnableResponse needs to get the |
|
Looking at the error in MetaDataStorageHandlerTest.php:98 it seems some of the metadata in ./tests/src/SimpleSAML/Metadata/test-metadata/source1/saml20-sp-remote.php That array key and entityid seems to remain unchanged but the test suite file is now looking for |
|
For tests/modules/saml/src/Controller/ServiceProviderTest.php One way to support the new code is to add in HTTPPost.php This makes this particular |
Yes, changing the test-data was probably not a good idea |
I would have to look into this again.. I added the gzdeflate() because I thought it fixed something, but it may have been a wrong call |
|
The SPTest.php:282 test failure seems to be boolean conversion issues coming from the conversion in In vendor/simplesamlphp/saml2/src/XML/samlp/AuthnRequest.php in The |
bb97c7f to
97f5cba
Compare
I think you're looking at the wrong version of the saml2-library. |
|
It might have been cleaner to have the two saml libraries having more distinct namespaces. saml2 = use SimpleSAML\SAML2\XML\samlp\AuthnRequest It seems both are in use in SP.php: [1] The SPTester.php has It is not obvious to a new reader but So if the conversion on the ABC line above is not complete the test will fail. It is also possible I am missing something. I did a composer update to make sure I am on the selected vendor libraries. That also wiped out my changes in there (no big deal). Adding back the |
Yes, there was no other option. The good part is that we can gradually rewrite code to use the new library. |
No it doesn't :/ The test is correct. Something appears to be wrong with the conversion from old AuthnRequest to NewAuthnRequest |
|
ExampleAuthTest.php almost works. For me locally I am getting a 303 response which Again, I would not be surprised if there were differences between what I get here and what happens on the test suite :/ Maybe we could follow a 303 to get the real result instead in the suite. If the redirection is to an error page then the test suite should maybe try to detect that situation. I also added to the |
|
I guess we have tracked down the SPTest to being that conversion. I'll have to work out where/why my local setup for this differs for the support library versions to be of more assistance. I am still working locally on the checkout for part1 of the PR. edit composer.json composer show Making a clean directory, copying composer.json to it and doing composer install gives me: |
|
The same deflate code in |
|
Thanks for looking into this! My priorities have shifted to the libraries because of an upcoming code-review. |
|
My plan is to incorporate a few of the comments I have made and work out what is still outstanding to fix for the PR. |
Was: #2645