Moodle
  1. Moodle
  2. MDL-41975

Alfresco integration does not work with alfresco 4.2.d+

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.2, 2.5.5, 2.6.2
    • Fix Version/s: 2.5.6, 2.6.3
    • Component/s: Repositories
    • Labels:
    • Testing Instructions:
      Hide

      Pre-requisites

      • Alfresco 4.2.d or greater (avoid 4.2.f on Windows 7, it's buggy)
      • Alfresco 4.2.c or lower
      • Add one file to Alfresco

      Test

      1. Set up your Alfresco repository
      2. Go to your Private files
      3. Use the file picker to get to the file you added to Alfresco
      4. Make sure you could login and get to the file
      5. Make sure the file was downloaded
      6. Repeat with the other version of Alfresco
      Show
      Pre-requisites Alfresco 4.2.d or greater (avoid 4.2.f on Windows 7, it's buggy) Alfresco 4.2.c or lower Add one file to Alfresco Test Set up your Alfresco repository Go to your Private files Use the file picker to get to the file you added to Alfresco Make sure you could login and get to the file Make sure the file was downloaded Repeat with the other version of Alfresco
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull 2.6 Branch:
    • Pull Master Branch:
      MDL-41975-master

      Description

      When trying to add an alfresco resource, the login window just reappears every time a username/password has been submitted.

      The alfresco log says:
      "GET /alfresco/api/AuthenticationService?wsdl HTTP/1.1" 401 3466

      When accessing /alfresco/api/AuthenticationService?wsdl through a browser the server ask for username and password for a tenant named 'AuthenticationService' That tenant does of course not exist, so a 401 is returned even if valid credentials are entered.

      Seems like the SOAP Web Services used by Moodle have been deprecated in Alfresco 4.2.d.

      I have tried with Alfresco 4.2.d and 4.2.e on an Ubuntu 12.04 server. Have tried both the standard install and various manual installs, but the result is always the same.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Frédéric Massart added a comment -

            Thanks for reporting this. I could also reproduce this error with Alfresco Community 4.2.d.

            I've put that on the backlog.

            In the meantime feel free to help us work on this issue. If you are able to provide a patch or links to your Git repository branch, please add a patch label so we will spot it.

            Show
            Frédéric Massart added a comment - Thanks for reporting this. I could also reproduce this error with Alfresco Community 4.2.d. I've put that on the backlog. In the meantime feel free to help us work on this issue. If you are able to provide a patch or links to your Git repository branch, please add a patch label so we will spot it.
            Hide
            Frédéric Massart added a comment -

            Just noting that:

            Please note that this API has been superceded by CMIS (specifically, the CMIS SOAP binding). It's use is no longer recommended.

            http://wiki.alfresco.com/wiki/Developer_Guide#Developing_against_the_Alfresco_Repository
            http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services

            I would guess that it's time for us to re-work Alfresco for REST.

            Show
            Frédéric Massart added a comment - Just noting that: Please note that this API has been superceded by CMIS (specifically, the CMIS SOAP binding). It's use is no longer recommended. http://wiki.alfresco.com/wiki/Developer_Guide#Developing_against_the_Alfresco_Repository http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services I would guess that it's time for us to re-work Alfresco for REST.
            Hide
            Mihail Peltekov added a comment -

            When will be fixed? Same problem with Alfresco 4.2e.
            Thanks!

            Show
            Mihail Peltekov added a comment - When will be fixed? Same problem with Alfresco 4.2e. Thanks!
            Hide
            Michael de Raadt added a comment -

            Fred is testing whether any version of Alfresco works. We may have to say that Moodle 2.6 works with versions of Alfresco up to version X and try to increase this later.

            Show
            Michael de Raadt added a comment - Fred is testing whether any version of Alfresco works. We may have to say that Moodle 2.6 works with versions of Alfresco up to version X and try to increase this later.
            Hide
            Frédéric Massart added a comment -

            I confirm that this does not happen on 4.2.c, only on 4.2.d onwards. Here is some debugging information:

            SoapFault Object
            (
                [message:protected] => Not Found
                [string:Exception:private] => 
                [code:protected] => 0
                [file:protected] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php
                [line:protected] => 107
                [trace:Exception:private] => Array
                    (
                        [0] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php
                                [line] => 107
                                [function] => __doRequest
                                [class] => SoapClient
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => <?xml version="1.0" encoding="UTF-8"?>
            <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.alfresco.org/ws/service/authentication/1.0"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:startSession><ns1:username>admin</ns1:username><ns1:password>moodle</ns1:password></ns1:startSession></SOAP-ENV:Body></SOAP-ENV:Envelope>
             
                                        [1] => http://192.168.100.120:8080/alfresco/api/AuthenticationService
                                        [2] => http://www.alfresco.org/ws/service/authentication/1.0/startSession
                                        [3] => 1
                                    )
             
                            )
             
                        [1] => Array
                            (
                                [function] => __doRequest
                                [class] => AlfrescoWebService
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => <?xml version="1.0" encoding="UTF-8"?>
            <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.alfresco.org/ws/service/authentication/1.0"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:startSession><ns1:username>admin</ns1:username><ns1:password>moodle</ns1:password></ns1:startSession></SOAP-ENV:Body></SOAP-ENV:Envelope>
             
                                        [1] => http://192.168.100.120:8080/alfresco/api/AuthenticationService
                                        [2] => http://www.alfresco.org/ws/service/authentication/1.0/startSession
                                        [3] => 1
                                        [4] => 0
                                    )
             
                            )
             
                        [2] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php
                                [line] => 59
                                [function] => __soapCall
                                [class] => SoapClient
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => startSession
                                        [1] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [username] => admin
                                                        [password] => moodle
                                                    )
             
                                            )
             
                                        [2] => Array
                                            (
                                            )
             
                                        [3] => Array
                                            (
                                            )
             
                                        [4] => Array
                                            (
                                            )
             
                                    )
             
                            )
             
                        [3] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php
                                [line] => 41
                                [function] => __soapCall
                                [class] => AlfrescoWebService
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => startSession
                                        [1] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [username] => admin
                                                        [password] => moodle
                                                    )
             
                                            )
             
                                    )
             
                            )
             
                        [4] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/Repository.php
                                [line] => 71
                                [function] => __call
                                [class] => AlfrescoWebService
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => startSession
                                        [1] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [username] => admin
                                                        [password] => moodle
                                                    )
             
                                            )
             
                                    )
             
                            )
             
                        [5] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/Repository.php
                                [line] => 71
                                [function] => startSession
                                [class] => AlfrescoWebService
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => Array
                                            (
                                                [username] => admin
                                                [password] => moodle
                                            )
             
                                    )
             
                            )
             
                        [6] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/repository/alfresco/lib.php
                                [line] => 64
                                [function] => authenticate
                                [class] => Alfresco_Repository
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => admin
                                        [1] => moodle
                                    )
             
                            )
             
                        [7] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/repository/lib.php
                                [line] => 635
                                [function] => __construct
                                [class] => repository_alfresco
                                [type] => ->
                                [args] => Array
                                    (
                                        [0] => 14
                                        [1] => context_user Object
                                            (
                                                [_id:protected] => 5
                                                [_contextlevel:protected] => 30
                                                [_instanceid:protected] => 2
                                                [_path:protected] => /1/5
                                                [_depth:protected] => 2
                                            )
             
                                        [2] => Array
                                            (
                                                [ajax] => 1
                                                [mimetypes] => *
                                                [type] => alfresco
                                                [typeid] => 16
                                                [visible] => 1
                                                [name] => Alfresco
                                            )
             
                                        [3] => 0
                                    )
             
                            )
             
                        [8] => Array
                            (
                                [file] => /home/fred/www/repositories/im/moodle/repository/repository_ajax.php
                                [line] => 77
                                [function] => get_repository_by_id
                                [class] => repository
                                [type] => ::
                                [args] => Array
                                    (
                                        [0] => 14
                                        [1] => 5
                                        [2] => Array
                                            (
                                                [ajax] => 1
                                                [mimetypes] => *
                                            )
             
                                    )
             
                            )
             
                    )
             
                [previous:Exception:private] => 
                [faultstring] => Not Found
                [faultcode] => HTTP
                [xdebug_message] => 
            SoapFault: Not Found in /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php on line 107
             
            Call Stack:
                0.0012     830064   1. {main}() /home/fred/www/repositories/im/moodle/repository/repository_ajax.php:0
                0.1706   40984592   2. repository::get_repository_by_id() /home/fred/www/repositories/im/moodle/repository/repository_ajax.php:77
                0.1726   41188624   3. repository_alfresco->__construct() /home/fred/www/repositories/im/moodle/repository/lib.php:635
                0.1812   42144656   4. Alfresco_Repository->authenticate() /home/fred/www/repositories/im/moodle/repository/alfresco/lib.php:64
                0.1814   42172000   5. AlfrescoWebService->startSession() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/Repository.php:71
                0.1814   42172512   6. AlfrescoWebService->__call() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php:0
                0.1814   42172512   7. AlfrescoWebService->__soapCall() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php:41
                0.1814   42173552   8. SoapClient->__soapCall() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php:59
             
            )
            

            Show
            Frédéric Massart added a comment - I confirm that this does not happen on 4.2.c, only on 4.2.d onwards. Here is some debugging information: SoapFault Object ( [message:protected] => Not Found [string:Exception:private] => [code:protected] => 0 [file:protected] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php [line:protected] => 107 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php [line] => 107 [function] => __doRequest [class] => SoapClient [type] => -> [args] => Array ( [0] => <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.alfresco.org/ws/service/authentication/1.0"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:startSession><ns1:username>admin</ns1:username><ns1:password>moodle</ns1:password></ns1:startSession></SOAP-ENV:Body></SOAP-ENV:Envelope>   [1] => http://192.168.100.120:8080/alfresco/api/AuthenticationService [2] => http://www.alfresco.org/ws/service/authentication/1.0/startSession [3] => 1 )   )   [1] => Array ( [function] => __doRequest [class] => AlfrescoWebService [type] => -> [args] => Array ( [0] => <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.alfresco.org/ws/service/authentication/1.0"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:startSession><ns1:username>admin</ns1:username><ns1:password>moodle</ns1:password></ns1:startSession></SOAP-ENV:Body></SOAP-ENV:Envelope>   [1] => http://192.168.100.120:8080/alfresco/api/AuthenticationService [2] => http://www.alfresco.org/ws/service/authentication/1.0/startSession [3] => 1 [4] => 0 )   )   [2] => Array ( [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php [line] => 59 [function] => __soapCall [class] => SoapClient [type] => -> [args] => Array ( [0] => startSession [1] => Array ( [0] => Array ( [username] => admin [password] => moodle )   )   [2] => Array ( )   [3] => Array ( )   [4] => Array ( )   )   )   [3] => Array ( [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php [line] => 41 [function] => __soapCall [class] => AlfrescoWebService [type] => -> [args] => Array ( [0] => startSession [1] => Array ( [0] => Array ( [username] => admin [password] => moodle )   )   )   )   [4] => Array ( [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/Repository.php [line] => 71 [function] => __call [class] => AlfrescoWebService [type] => -> [args] => Array ( [0] => startSession [1] => Array ( [0] => Array ( [username] => admin [password] => moodle )   )   )   )   [5] => Array ( [file] => /home/fred/www/repositories/im/moodle/lib/alfresco/Service/Repository.php [line] => 71 [function] => startSession [class] => AlfrescoWebService [type] => -> [args] => Array ( [0] => Array ( [username] => admin [password] => moodle )   )   )   [6] => Array ( [file] => /home/fred/www/repositories/im/moodle/repository/alfresco/lib.php [line] => 64 [function] => authenticate [class] => Alfresco_Repository [type] => -> [args] => Array ( [0] => admin [1] => moodle )   )   [7] => Array ( [file] => /home/fred/www/repositories/im/moodle/repository/lib.php [line] => 635 [function] => __construct [class] => repository_alfresco [type] => -> [args] => Array ( [0] => 14 [1] => context_user Object ( [_id:protected] => 5 [_contextlevel:protected] => 30 [_instanceid:protected] => 2 [_path:protected] => /1/5 [_depth:protected] => 2 )   [2] => Array ( [ajax] => 1 [mimetypes] => * [type] => alfresco [typeid] => 16 [visible] => 1 [name] => Alfresco )   [3] => 0 )   )   [8] => Array ( [file] => /home/fred/www/repositories/im/moodle/repository/repository_ajax.php [line] => 77 [function] => get_repository_by_id [class] => repository [type] => :: [args] => Array ( [0] => 14 [1] => 5 [2] => Array ( [ajax] => 1 [mimetypes] => * )   )   )   )   [previous:Exception:private] => [faultstring] => Not Found [faultcode] => HTTP [xdebug_message] => SoapFault: Not Found in /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php on line 107   Call Stack: 0.0012 830064 1. {main}() /home/fred/www/repositories/im/moodle/repository/repository_ajax.php:0 0.1706 40984592 2. repository::get_repository_by_id() /home/fred/www/repositories/im/moodle/repository/repository_ajax.php:77 0.1726 41188624 3. repository_alfresco->__construct() /home/fred/www/repositories/im/moodle/repository/lib.php:635 0.1812 42144656 4. Alfresco_Repository->authenticate() /home/fred/www/repositories/im/moodle/repository/alfresco/lib.php:64 0.1814 42172000 5. AlfrescoWebService->startSession() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/Repository.php:71 0.1814 42172512 6. AlfrescoWebService->__call() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php:0 0.1814 42172512 7. AlfrescoWebService->__soapCall() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php:41 0.1814 42173552 8. SoapClient->__soapCall() /home/fred/www/repositories/im/moodle/lib/alfresco/Service/WebService/AlfrescoWebService.php:59   )
            Hide
            Michael de Raadt added a comment -

            As we were able to confirm that Moodle is working with Alfresco 4.2.c and have passed the linked QA test, I'm reducing the urgency for fixing this issue in relation to Moodle 2.6.

            Show
            Michael de Raadt added a comment - As we were able to confirm that Moodle is working with Alfresco 4.2.c and have passed the linked QA test, I'm reducing the urgency for fixing this issue in relation to Moodle 2.6.
            Hide
            Michel Boivin added a comment -

            I happened to run into the exact same issue with a custom webapp (read: not Moodle).
            I also happened to find the cause (and fix) for the bug you are experiencing.

            You guys might be interested in reading this Alfresco bug:
            https://issues.alfresco.com/jira/browse/PUBLICAPI-188?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

            Basically, what happens is that the SOAP API that was located under /alfresco/api has been moved to /alfresco/soapapi. Simply change your endpoint URL and it should start working again.

            Show
            Michel Boivin added a comment - I happened to run into the exact same issue with a custom webapp (read: not Moodle). I also happened to find the cause (and fix) for the bug you are experiencing. You guys might be interested in reading this Alfresco bug: https://issues.alfresco.com/jira/browse/PUBLICAPI-188?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel Basically, what happens is that the SOAP API that was located under /alfresco/api has been moved to /alfresco/soapapi. Simply change your endpoint URL and it should start working again.
            Hide
            Frédéric Massart added a comment -

            Great find Michel Boivin! You Google skills are better than mine. However, I tried and while the authentication works again, I encounter another error:

            Exception - WSDoAllReceiver: The timestamp could not be validated
            line 59 of \/lib\/alfresco\/Service\/WebService\/AlfrescoWebService.php: SoapFault thrown 
            line 59 of \/lib\/alfresco\/Service\/WebService\/AlfrescoWebService.php: call to SoapClient->__soapCall() 
            line 41 of \/lib\/alfresco\/Service\/WebService\/AlfrescoWebService.php: call to AlfrescoWebService->__soapCall() 
            line 220 of \/lib\/alfresco\/Service\/Session.php: call to AlfrescoWebService->__call() 
            line 220 of \/lib\/alfresco\/Service\/Session.php: call to AlfrescoWebService->query() 
            line 42 of \/lib\/alfresco\/Service\/SpacesStore.php: call to Session->query() 
            line 31 of \/lib\/alfresco\/Service\/BaseObject.php: call to SpacesStore->getCompanyHome() 
            line 166 of \/repository\/alfresco\/lib.php: call to BaseObject->__get() 
            line 98 of \/repository\/repository_ajax.php: call to repository_alfresco->get_listing()
            

            I do not have much more time to investigate this right now, but I will ASAP.

            Cheers,
            Fred

            Show
            Frédéric Massart added a comment - Great find Michel Boivin ! You Google skills are better than mine. However, I tried and while the authentication works again, I encounter another error: Exception - WSDoAllReceiver: The timestamp could not be validated line 59 of \/lib\/alfresco\/Service\/WebService\/AlfrescoWebService.php: SoapFault thrown line 59 of \/lib\/alfresco\/Service\/WebService\/AlfrescoWebService.php: call to SoapClient->__soapCall() line 41 of \/lib\/alfresco\/Service\/WebService\/AlfrescoWebService.php: call to AlfrescoWebService->__soapCall() line 220 of \/lib\/alfresco\/Service\/Session.php: call to AlfrescoWebService->__call() line 220 of \/lib\/alfresco\/Service\/Session.php: call to AlfrescoWebService->query() line 42 of \/lib\/alfresco\/Service\/SpacesStore.php: call to Session->query() line 31 of \/lib\/alfresco\/Service\/BaseObject.php: call to SpacesStore->getCompanyHome() line 166 of \/repository\/alfresco\/lib.php: call to BaseObject->__get() line 98 of \/repository\/repository_ajax.php: call to repository_alfresco->get_listing() I do not have much more time to investigate this right now, but I will ASAP. Cheers, Fred
            Hide
            Michel Boivin added a comment -

            Well, finding the original issue had me searching all over the place.

            I also happened to stumble upon something that might explain the timestamp problem you are experiencing.

            The following forum post seems to be pretty much spot on: https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/40d-vs-42d-soap-exception

            It simply seems that Alfresco and Moodle times have to be synchronized (Alfresco 4.2.d+ is more stringent on timestamp validations).

            Good luck!

            Show
            Michel Boivin added a comment - Well, finding the original issue had me searching all over the place. I also happened to stumble upon something that might explain the timestamp problem you are experiencing. The following forum post seems to be pretty much spot on: https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/40d-vs-42d-soap-exception It simply seems that Alfresco and Moodle times have to be synchronized (Alfresco 4.2.d+ is more stringent on timestamp validations). Good luck!
            Hide
            Mihail Peltekov added a comment -

            Same problem with Alfresco 4.2e. I try to set timezone in tomcat environment, but without successes. Tomcat answer only with GMT time.
            Workaround?
            Thanks!

            Show
            Mihail Peltekov added a comment - Same problem with Alfresco 4.2e. I try to set timezone in tomcat environment, but without successes. Tomcat answer only with GMT time. Workaround? Thanks!
            Hide
            Dominik Danninger added a comment -

            The SOAP URL seems to be changed in 4.2e and probably 4.2d too it is http://ALFRESCO/alfresco/soapapi/ now try http://localhost:8080/alfresco/soapapi/AuthenticationService?wsdl

            Show
            Dominik Danninger added a comment - The SOAP URL seems to be changed in 4.2e and probably 4.2d too it is http://ALFRESCO/alfresco/soapapi/ now try http://localhost:8080/alfresco/soapapi/AuthenticationService?wsdl
            Hide
            Dominik Danninger added a comment -

            And changing the file AlfrescoWebService.php

            in __doRequest
            $createdDate = date("Y-m-d\TH:i:s\Z", mktime(date("H")+24, date("i"), date("s"), date("m"), date("d"), date("Y")));
            $expiresDate = date("Y-m-d\TH:i:s\Z", mktime(date("H")+25, date("i"), date("s"), date("m"), date("d"), date("Y")));

            lines to
            $createdDate = gmdate("Y-m-d\TH:i:s\Z", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")));
            $expiresDate = gmdate("Y-m-d\TH:i:s\Z", mktime(date("H")+1, date("i"), date("s"), date("m"), date("d"), date("Y")));

            fixes the problem for me

            Show
            Dominik Danninger added a comment - And changing the file AlfrescoWebService.php in __doRequest $createdDate = date("Y-m-d\TH:i:s\Z", mktime(date("H")+24, date("i"), date("s"), date("m"), date("d"), date("Y"))); $expiresDate = date("Y-m-d\TH:i:s\Z", mktime(date("H")+25, date("i"), date("s"), date("m"), date("d"), date("Y"))); lines to $createdDate = gmdate("Y-m-d\TH:i:s\Z", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"))); $expiresDate = gmdate("Y-m-d\TH:i:s\Z", mktime(date("H")+1, date("i"), date("s"), date("m"), date("d"), date("Y"))); fixes the problem for me
            Hide
            Michael Woods added a comment -

            Patch supplied from our site, where we had to force moodle to send gmt time to get Alfresco 4.2.d to accept the request.

            Show
            Michael Woods added a comment - Patch supplied from our site, where we had to force moodle to send gmt time to get Alfresco 4.2.d to accept the request.
            Hide
            Frédéric Massart added a comment -

            Thanks a lot for the information and patch shared on this issue guys. I have picked your patch Michael and added another one to update the documentation.

            I didn't go into details to understand the validation of the timestamp, I applied your patch and noticed that it was now working. I also tried in a previous version and it worked as well.

            Cheers,
            Fred

            Show
            Frédéric Massart added a comment - Thanks a lot for the information and patch shared on this issue guys. I have picked your patch Michael and added another one to update the documentation. I didn't go into details to understand the validation of the timestamp, I applied your patch and noticed that it was now working. I also tried in a previous version and it worked as well. Cheers, Fred
            Hide
            CiBoT added a comment -
            Show
            CiBoT added a comment - Results for MDL-41975 Remote repository: git://github.com/FMCorz/moodle.git Remote branch MDL-41975 -25 to be integrated into upstream MOODLE_25_STABLE Executed job http://integration.moodle.org/job/Precheck%20remote%20branch/3015 Details: http://integration.moodle.org/job/Precheck%20remote%20branch/3015/artifact/work/smurf.html Remote branch MDL-41975 -26 to be integrated into upstream MOODLE_26_STABLE Executed job http://integration.moodle.org/job/Precheck%20remote%20branch/3016 Details: http://integration.moodle.org/job/Precheck%20remote%20branch/3016/artifact/work/smurf.html Remote branch MDL-41975 -master to be integrated into upstream master Executed job http://integration.moodle.org/job/Precheck%20remote%20branch/3017 Details: http://integration.moodle.org/job/Precheck%20remote%20branch/3017/artifact/work/smurf.html
            Hide
            Petr Skoda added a comment -

            makes sense, +1, sending to integration

            Show
            Petr Skoda added a comment - makes sense, +1, sending to integration
            Hide
            Dan Poltawski added a comment -

            Integrated to master, 26 and 25 - thanks Michael and Fred!

            Show
            Dan Poltawski added a comment - Integrated to master, 26 and 25 - thanks Michael and Fred!
            Hide
            Dan Poltawski added a comment -

            Tested on 25/26 and master.

            1. The style of the username/password box is horrible, different sized. But I believe there is something ongoing about that
            2. It sucks that we keep prompting for username/password with the wrong version/url. But i suppose its out of the scope of this issue
            3. I think we could do with some sort of 'test configuration' style thing for the repo, but again I suppose this is out of scope.
            Show
            Dan Poltawski added a comment - Tested on 25/26 and master. The style of the username/password box is horrible, different sized. But I believe there is something ongoing about that It sucks that we keep prompting for username/password with the wrong version/url. But i suppose its out of the scope of this issue I think we could do with some sort of 'test configuration' style thing for the repo, but again I suppose this is out of scope.
            Hide
            Eloy Lafuente (stronk7) added a comment -

            Your code is now part of Moodle upstream, many thanks!

            It's a constant, continuous,
            spectacular world we live in,
            and every day you see things that
            just knock you out, if you pay attention.

            Robert Irwin

            Show
            Eloy Lafuente (stronk7) added a comment - Your code is now part of Moodle upstream, many thanks! It's a constant, continuous, spectacular world we live in, and every day you see things that just knock you out, if you pay attention. Robert Irwin

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: