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
@thijskh I sort of remember us discussing a duplicate date-header, but I can't remember the details.. Do you?
Edit: I found simplesamlphp/simplesamlphp#1852 but that one was never merged and the reason for that wasn't mentioned in the PR.
I manually added the date line, but needed to add it after parent constructor so it wouldn't error out and it did not work, I still get the duplicate header for Date.
@madsi1m Could you try if f8828bb changes anything in this weird behaviour?
I updated discopower to use the latest commit which includes this (I double checked) and again it did not work, I still get the duplicate header for Date.
I also increased the output_buffering on php and then disabled it and both times I still get the duplicate header for Date.
Happy to try other things as you think of them.
Our setup is very basic, php-fpm talking to nginx. The nginx log is what is reporting duplicate header line from php and it is only from discopower.
I think in addition to what @thijskh already said, it wasn't merged because it didn't work.
This issue is caused by our half-decent implementation of Symfony routing/controllers, and the problem with the proper implementation (already in place in our master-branch) is that it's a backwards-incompatible change. I kind of remember us agreeing that the duplicate date-header wasn't worth the hassle/effort of releasing a new major and update literally every module we have. It's a warning, it's annoying, but it doesn't harm anyone.
I think I may have found a workaround for this. The issue, if I remember correctly, is that we output a template ($t->send()) and capture that in a StreamedResponse and then output that again.
The fix involves changes in both this module and in SimpleSAMLphp, and it's technically a BC-break, but only for those who implement their own discovery service. I think with some proper upgrade notes it's okayish to release this in the next minor version of SSP.
Activity
tvdijen commentedon Aug 21, 2024
@thijskh I sort of remember us discussing a duplicate date-header, but I can't remember the details.. Do you?
Edit: I found simplesamlphp/simplesamlphp#1852 but that one was never merged and the reason for that wasn't mentioned in the PR.
tvdijen commentedon Aug 21, 2024
@madsi1m Could you try if f8828bb changes anything in this weird behaviour?
thijskh commentedon Aug 21, 2024
I think it was never merged because we considered it a corner case that was resolved by the refactoring already done in master...
madsi1m commentedon Aug 21, 2024
Hi @tvdijen and @thijskh, thank you for the quick response!
I manually added the date line, but needed to add it after parent constructor so it wouldn't error out and it did not work, I still get the duplicate header for Date.
I updated discopower to use the latest commit which includes this (I double checked) and again it did not work, I still get the duplicate header for Date.
I also increased the output_buffering on php and then disabled it and both times I still get the duplicate header for Date.
Happy to try other things as you think of them.
Our setup is very basic, php-fpm talking to nginx. The nginx log is what is reporting duplicate header line from php and it is only from discopower.
tvdijen commentedon Aug 22, 2024
I think in addition to what @thijskh already said, it wasn't merged because it didn't work.
This issue is caused by our half-decent implementation of Symfony routing/controllers, and the problem with the proper implementation (already in place in our master-branch) is that it's a backwards-incompatible change. I kind of remember us agreeing that the duplicate date-header wasn't worth the hassle/effort of releasing a new major and update literally every module we have. It's a warning, it's annoying, but it doesn't harm anyone.
tvdijen commentedon Aug 22, 2024
I think I may have found a workaround for this. The issue, if I remember correctly, is that we output a template ($t->send()) and capture that in a StreamedResponse and then output that again.
The fix involves changes in both this module and in SimpleSAMLphp, and it's technically a BC-break, but only for those who implement their own discovery service. I think with some proper upgrade notes it's okayish to release this in the next minor version of SSP.@madsi1m Feel free to test thisStrike that.. I came to the conclusion that this cannot be done without a tremendous amount of work on SimpleSAMLphp.