vih / vih-build

Drupal profile and .make files for vih.dk
http://vih.dk
1 stars 2 forks source link

Kalendersiden switched to https and does not return data anymore #64

Open lsolesen opened 9 years ago

lsolesen commented 9 years ago

Kalendersiden.dk used to work perfectly on http. Recently they switched to https and that might cause the issue that no data is returned anymore.

We use this functionality a lot when introducing new courses and planning courses, so we need this working again - or we need to switch to another way to provide an overview in PDF as nice as kalendersiden.dk (I am not aware of any PHP-libraries doing something similar?)

This is the result I am getting now when running the code from https://github.com/vih/vih_kalendersiden/blob/7.x-1.x/vih_kalendersiden.module#L229

stdClass Object
(
    [url] => https://kalendersiden.dk/generate.php
    [status] => Done.
    [code] => 0
    [chunk_size] => 1024
    [data] => 
    [request] => POST /generate.php HTTP/1.0
Content-Type: application/x-www-form-urlencoded
User-Agent: Drupal (+http://drupal.org/)
Connection: close
Host: kalendersiden.dk
Content-Length: 2063

month=6&year=2015&months=6&pages=1&format=landscape&head=Vejle%20Idr%C3%A6tsh%C3%B8jskole&userdata=fra%2011.06.2015%20til%2011.06.2015%3AScenen%20er%20jeres%20Team%20MO%2C%20MB%20%26LO%0Afra%2019.06.2015%20til%2021.06.2015%3AWeekendarrangement%20-%20Team%20JD%2CJS%26MS%0Afra%2023.06.2015%20til%2023.06.2015%3AElev%20afrejse%0Afra%2009.08.2015%20til%2009.08.2015%3ASemesterstart%0Afra%2014.08.2015%20til%2016.08.2015%3AIntroweekend%0Afra%2021.08.2015%20til%2023.08.2015%3AHjemrejseweekend%0Afra%2024.08.2015%20til%2027.08.2015%3AFriluftstur%0Afra%2028.08.2015%20til%2028.08.2015%3AOptakt%20til%20weekenden%0Afra%2028.08.2015%20til%2030.08.2015%3AGensynsweekend%0Afra%2010.09.2015%20til%2011.09.2015%3AIdr%C3%A6ts%20blok%201%20dage%0Afra%2018.09.2015%20til%2020.09.2015%3AWeekendarrangement%0Afra%2022.09.2015%20til%2023.09.2015%3AIdr%C3%A6ts%20blok%202%20dage%0Afra%2024.09.2015%20til%2024.09.2015%3AArbejdsdag%0Afra%2025.09.2015%20til%2027.09.2015%3AHjemrejseweekend%0Afra%2005.10.2015%20til%2006.10.2015%3AH%C3%B8jskolernes%20idr%C3%A6tsst%C3%A6vne%3A%20Ollerup%0Afra%2011.10.2015%20til%2011.10.2015%3ANye%20elever%0Afra%2016.10.2015%20til%2018.10.2015%3AIntroweekend%0Afra%2023.10.2015%20til%2025.10.2015%3AHjemrejseweekend%0Afra%2027.10.2015%20til%2028.10.2015%3AIdr%C3%A6t%20blok%202%20dage%0Afra%2001.11.2015%20til%2001.11.2015%3AFamiliedag%0Afra%2006.11.2015%20til%2013.11.2015%3ALa%20Santa%0Afra%2021.11.2015%20til%2022.11.2015%3AMarkedsf%C3%B8ringsdag%0Afra%2021.11.2015%20til%2022.11.2015%3AVenneweekend%0Afra%2022.11.2015%20til%2028.11.2015%3ASki-faget%20p%C3%A5%20tur%0Afra%2026.11.2015%20til%2027.11.2015%3AIdr%C3%A6t%20blok%201%20dage%0Afra%2030.11.2015%20til%2001.12.2015%3ALinjedage%0Afra%2002.12.2015%20til%2004.12.2015%3ATeambuilderdage%0Afra%2011.12.2015%20til%2013.12.2015%3AWeekendarrangement%0Afra%2017.12.2015%20til%2018.12.2015%3AOutrodage%0Afra%2019.12.2015%20til%2019.12.2015%3AAfrejse%0Afra%2006.01.2016%20til%2006.01.2016%3ASemesterstart%0Afra%2008.01.2016%20til%2010.01.2016%3AIntroweekend&info[]=showyear&info[]=holidays&info[]=weeks
    [options] => Array
        (
            [method] => POST
            [data] => month=6&year=2015&months=6&pages=1&format=landscape&head=Vejle%20Idr%C3%A6tsh%C3%B8jskole&userdata=fra%2011.06.2015%20til%2011.06.2015%3AScenen%20er%20jeres%20Team%20MO%2C%20MB%20%26LO%0Afra%2019.06.2015%20til%2021.06.2015%3AWeekendarrangement%20-%20Team%20JD%2CJS%26MS%0Afra%2023.06.2015%20til%2023.06.2015%3AElev%20afrejse%0Afra%2009.08.2015%20til%2009.08.2015%3ASemesterstart%0Afra%2014.08.2015%20til%2016.08.2015%3AIntroweekend%0Afra%2021.08.2015%20til%2023.08.2015%3AHjemrejseweekend%0Afra%2024.08.2015%20til%2027.08.2015%3AFriluftstur%0Afra%2028.08.2015%20til%2028.08.2015%3AOptakt%20til%20weekenden%0Afra%2028.08.2015%20til%2030.08.2015%3AGensynsweekend%0Afra%2010.09.2015%20til%2011.09.2015%3AIdr%C3%A6ts%20blok%201%20dage%0Afra%2018.09.2015%20til%2020.09.2015%3AWeekendarrangement%0Afra%2022.09.2015%20til%2023.09.2015%3AIdr%C3%A6ts%20blok%202%20dage%0Afra%2024.09.2015%20til%2024.09.2015%3AArbejdsdag%0Afra%2025.09.2015%20til%2027.09.2015%3AHjemrejseweekend%0Afra%2005.10.2015%20til%2006.10.2015%3AH%C3%B8jskolernes%20idr%C3%A6tsst%C3%A6vne%3A%20Ollerup%0Afra%2011.10.2015%20til%2011.10.2015%3ANye%20elever%0Afra%2016.10.2015%20til%2018.10.2015%3AIntroweekend%0Afra%2023.10.2015%20til%2025.10.2015%3AHjemrejseweekend%0Afra%2027.10.2015%20til%2028.10.2015%3AIdr%C3%A6t%20blok%202%20dage%0Afra%2001.11.2015%20til%2001.11.2015%3AFamiliedag%0Afra%2006.11.2015%20til%2013.11.2015%3ALa%20Santa%0Afra%2021.11.2015%20til%2022.11.2015%3AMarkedsf%C3%B8ringsdag%0Afra%2021.11.2015%20til%2022.11.2015%3AVenneweekend%0Afra%2022.11.2015%20til%2028.11.2015%3ASki-faget%20p%C3%A5%20tur%0Afra%2026.11.2015%20til%2027.11.2015%3AIdr%C3%A6t%20blok%201%20dage%0Afra%2030.11.2015%20til%2001.12.2015%3ALinjedage%0Afra%2002.12.2015%20til%2004.12.2015%3ATeambuilderdage%0Afra%2011.12.2015%20til%2013.12.2015%3AWeekendarrangement%0Afra%2017.12.2015%20til%2018.12.2015%3AOutrodage%0Afra%2019.12.2015%20til%2019.12.2015%3AAfrejse%0Afra%2006.01.2016%20til%2006.01.2016%3ASemesterstart%0Afra%2008.01.2016%20til%2010.01.2016%3AIntroweekend&info[]=showyear&info[]=holidays&info[]=weeks
            [timeout] => 14.804865837097
            [headers] => Array
                (
                    [Content-Type] => application/x-www-form-urlencoded
                    [User-Agent] => Drupal (+http://drupal.org/)
                    [Connection] => close
                    [Host] => kalendersiden.dk
                    [Content-Length] => 2063
                )

            [max_redirects] => 3
            [dns_timeout] => 5
            [connect_timeout] => 5
            [ttfb_timeout] => 20
            [context] => 
            [secure_socket_transport] => ssl
            [blocking] => 1
            [version] => 1.0
            [referrer] => 
            [domain_connections] => 2
            [global_connections] => 128
            [global_timeout] => 120
            [chunk_size_read] => 32768
            [chunk_size_write] => 1024
            [async_connect] => 1
            [ping_db] => 20
        )

    [socket] => ssl://kalendersiden.dk:443
    [flags] => 6
    [uri] => Array
        (
            [scheme] => https
            [host] => kalendersiden.dk
            [path] => /generate.php
        )

    [running_time] => 0.19513416290283
    [fp] => Resource id #13
    [bytes_sent] => 2250
)
lsolesen commented 9 years ago

@mglaman Any chance that you can fix this soon?

mglaman commented 9 years ago

@lsolesen when running this locally I'm not having issues with the SSL. I wonder if the server is trying to verify the peer and that's why

mglaman commented 9 years ago

@lsolesen I added a patch to core which works around SNI issues, which is hopefully the issue.

lsolesen commented 9 years ago

I tried applying the patch, but it did not seem to fix the issue.

As far as I can see the 'context' has not been changed. Though I verified that the patch was applied. I am not sure why.

stdClass Object
(
[url] => https://kalendersiden.dk/generate.php
[status] => Done.
[code] => 0
[chunk_size] => 1024
[data] => 
[request] => POST /generate.php HTTP/1.0
Content-Type: application/x-www-form-urlencoded
User-Agent: Drupal (+http://drupal.org/)
Connection: close
Host: kalendersiden.dk
Content-Length: 1835

month=6&year=2015&months=6&pages=1&format=landscape&head=Vejle%20Idr%C3%A6tsh%C3%B8jskole&userdata=fra%2009.08.2015%20til%2009.08.2015%3ASemesterstart%0Afra%2014.08.2015%20til%2016.08.2015%3AIntroweekend%0Afra%2021.08.2015%20til%2023.08.2015%3AHjemrejseweekend%0Afra%2024.08.2015%20til%2027.08.2015%3AFriluftstur%0Afra%2028.08.2015%20til%2028.08.2015%3AOptakt%20til%20weekenden%0Afra%2028.08.2015%20til%2030.08.2015%3AGensynsweekend%0Afra%2010.09.2015%20til%2011.09.2015%3AIdr%C3%A6ts%20blok%201%20dage%0Afra%2018.09.2015%20til%2020.09.2015%3AWeekendarrangement%0Afra%2022.09.2015%20til%2023.09.2015%3AIdr%C3%A6ts%20blok%202%20dage%0Afra%2024.09.2015%20til%2024.09.2015%3AArbejdsdag%0Afra%2025.09.2015%20til%2027.09.2015%3AHjemrejseweekend%0Afra%2005.10.2015%20til%2006.10.2015%3AH%C3%B8jskolernes%20idr%C3%A6tsst%C3%A6vne%3A%20Ollerup%0Afra%2011.10.2015%20til%2011.10.2015%3ANye%20elever%0Afra%2016.10.2015%20til%2018.10.2015%3AIntroweekend%0Afra%2023.10.2015%20til%2025.10.2015%3AHjemrejseweekend%0Afra%2027.10.2015%20til%2028.10.2015%3AIdr%C3%A6t%20blok%202%20dage%0Afra%2001.11.2015%20til%2001.11.2015%3AFamiliedag%0Afra%2006.11.2015%20til%2013.11.2015%3ALa%20Santa%0Afra%2021.11.2015%20til%2022.11.2015%3AVenneweekend%0Afra%2021.11.2015%20til%2022.11.2015%3AMarkedsf%C3%B8ringsdag%0Afra%2022.11.2015%20til%2028.11.2015%3ASki-faget%20p%C3%A5%20tur%0Afra%2026.11.2015%20til%2027.11.2015%3AIdr%C3%A6t%20blok%201%20dage%0Afra%2030.11.2015%20til%2001.12.2015%3ALinjedage%0Afra%2002.12.2015%20til%2004.12.2015%3ATeambuilderdage%0Afra%2011.12.2015%20til%2013.12.2015%3AWeekendarrangement%0Afra%2017.12.2015%20til%2018.12.2015%3AOutrodage%0Afra%2019.12.2015%20til%2019.12.2015%3AAfrejse%0Afra%2006.01.2016%20til%2006.01.2016%3ASemesterstart%0Afra%2008.01.2016%20til%2010.01.2016%3AIntroweekend&info[]=showyear&info[]=holidays&info[]=weeks
[options] => Array
    (
        [method] => POST
        [data] => month=6&year=2015&months=6&pages=1&format=landscape&head=Vejle%20Idr%C3%A6tsh%C3%B8jskole&userdata=fra%2009.08.2015%20til%2009.08.2015%3ASemesterstart%0Afra%2014.08.2015%20til%2016.08.2015%3AIntroweekend%0Afra%2021.08.2015%20til%2023.08.2015%3AHjemrejseweekend%0Afra%2024.08.2015%20til%2027.08.2015%3AFriluftstur%0Afra%2028.08.2015%20til%2028.08.2015%3AOptakt%20til%20weekenden%0Afra%2028.08.2015%20til%2030.08.2015%3AGensynsweekend%0Afra%2010.09.2015%20til%2011.09.2015%3AIdr%C3%A6ts%20blok%201%20dage%0Afra%2018.09.2015%20til%2020.09.2015%3AWeekendarrangement%0Afra%2022.09.2015%20til%2023.09.2015%3AIdr%C3%A6ts%20blok%202%20dage%0Afra%2024.09.2015%20til%2024.09.2015%3AArbejdsdag%0Afra%2025.09.2015%20til%2027.09.2015%3AHjemrejseweekend%0Afra%2005.10.2015%20til%2006.10.2015%3AH%C3%B8jskolernes%20idr%C3%A6tsst%C3%A6vne%3A%20Ollerup%0Afra%2011.10.2015%20til%2011.10.2015%3ANye%20elever%0Afra%2016.10.2015%20til%2018.10.2015%3AIntroweekend%0Afra%2023.10.2015%20til%2025.10.2015%3AHjemrejseweekend%0Afra%2027.10.2015%20til%2028.10.2015%3AIdr%C3%A6t%20blok%202%20dage%0Afra%2001.11.2015%20til%2001.11.2015%3AFamiliedag%0Afra%2006.11.2015%20til%2013.11.2015%3ALa%20Santa%0Afra%2021.11.2015%20til%2022.11.2015%3AVenneweekend%0Afra%2021.11.2015%20til%2022.11.2015%3AMarkedsf%C3%B8ringsdag%0Afra%2022.11.2015%20til%2028.11.2015%3ASki-faget%20p%C3%A5%20tur%0Afra%2026.11.2015%20til%2027.11.2015%3AIdr%C3%A6t%20blok%201%20dage%0Afra%2030.11.2015%20til%2001.12.2015%3ALinjedage%0Afra%2002.12.2015%20til%2004.12.2015%3ATeambuilderdage%0Afra%2011.12.2015%20til%2013.12.2015%3AWeekendarrangement%0Afra%2017.12.2015%20til%2018.12.2015%3AOutrodage%0Afra%2019.12.2015%20til%2019.12.2015%3AAfrejse%0Afra%2006.01.2016%20til%2006.01.2016%3ASemesterstart%0Afra%2008.01.2016%20til%2010.01.2016%3AIntroweekend&info[]=showyear&info[]=holidays&info[]=weeks
        [timeout] => 14.814697980881
        [headers] => Array
            (
                [Content-Type] => application/x-www-form-urlencoded
                [User-Agent] => Drupal (+http://drupal.org/)
                [Connection] => close
                [Host] => kalendersiden.dk
                [Content-Length] => 1835
            )

        [max_redirects] => 3
        [dns_timeout] => 5
        [connect_timeout] => 5
        [ttfb_timeout] => 20
        [context] => 
        [secure_socket_transport] => ssl
        [blocking] => 1
        [version] => 1.0
        [referrer] => 
        [domain_connections] => 2
        [global_connections] => 128
        [global_timeout] => 120
        [chunk_size_read] => 32768
        [chunk_size_write] => 1024
        [async_connect] => 1
        [ping_db] => 20
    )

[socket] => ssl://kalendersiden.dk:443
[flags] => 6
[uri] => Array
    (
        [scheme] => https
        [host] => kalendersiden.dk
        [path] => /generate.php
    )

[running_time] => 0.18530201911926
[fp] => Resource id #2247
[bytes_sent] => 2022
)
lsolesen commented 9 years ago

I also tried this patch - https://www.drupal.org/files/ssl-socket-transports-1879970-13.patch - but it did not seem to fix the issue either.

As far as I understand the issue on d.o. refers to PHP 5.3, but vih.dk runs PHP 5.5.25 according to the status page.

lsolesen commented 9 years ago

We need an integration test - created new issue here: https://github.com/vih/vih-build/issues/82

lsolesen commented 9 years ago

@mglaman Strange thing is, that I cannot reproduce this locally.

mglaman commented 9 years ago

@lsolesen I'll see if there's a way we can get a test to see if its happening on Travis.. I feel it's got to be something on the server communicating with the site over SSL :/

mglaman commented 9 years ago

So, based on Viggo.. I'm going to guess this is still an issue with Omega8 and remote servers with SSL. I know they keep denying, but something isn't right there.

mglaman commented 9 years ago

@lsolesen I'm not sure what to do. This has got to be something on the server level where it doesn't talk well with servers behind SSL. I know Omega8 has danced around the issue but its got to be the only thing.

lsolesen commented 9 years ago

Moving to a new milestone, so we can close this up.