Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31475

Failure on redeclaration of struct class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Web Services
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide

      1) Create web service
      2) Assign an administrator as an authenticated user
      3) Give that administrator a token
      4) Try to use the web service - I used the SOAP protocol

      Show
      1) Create web service 2) Assign an administrator as an authenticated user 3) Give that administrator a token 4) Try to use the web service - I used the SOAP protocol
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      Our site has several web services and one of them had an administrator being the authenticated user due to the capabilities required. The service was uses token authenication. Recently, the service broke with upgrading Moodle code (can't saw specifically which version as we the issue just presented itself, but we are using Moodle 2.2.1 now).

      Debugging a development instance, I was able to reproduce the bug and found that the compiler was failing on the following error:

      Cannot redeclare class webservices_struct_class_000002

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              nickkoeppen Nicholas Koeppen
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: