Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-4103

RestAPI: update of an external page reults in 500 error

    XMLWordPrintable

    Details

      Description

      The cause is that the query parameter for nodeId was not correctly assigned. This patch fixes that:

      diff --git a/src/main/java/org/olat/restapi/repository/course/CourseElementWebService.java b/src/main/java/org/olat/restapi/repository/course/CourseElementWebService.java
      index 8c3b4a3..6db4b7a 100644
      --- a/src/main/java/org/olat/restapi/repository/course/CourseElementWebService.java
      +++ b/src/main/java/org/olat/restapi/repository/course/CourseElementWebService.java
      @@ -1218,7 +1219,7 @@
       	@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
       	@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
       	//fxdiff FXOLAT-122: course management
      -	public Response updateExternalPage(@PathParam("courseId") Long courseId, @PathParam("parentNodeId") String nodeId,
      +	public Response updateExternalPage(@PathParam("courseId") Long courseId, @PathParam("nodeId") String nodeId,
       			@FormParam("shortTitle") @DefaultValue("undefined") String shortTitle,
       			@FormParam("longTitle") @DefaultValue("undefined") String longTitle, @FormParam("objectives") @DefaultValue("undefined") String objectives,
       			@FormParam("visibilityExpertRules") String visibilityExpertRules, @FormParam("accessExpertRules") String accessExpertRules,
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m