Αναρτήσεις που έγιναν από τον/την Tim Hunt

Φωτογραφία Core developers Φωτογραφία Documentation writers Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers
When you upgraded to Moodle 5.0.x, the questions that used to be in the system context should have been moved to an equivalent module context. So, if that did not happen, there is probably a bug, and it would be good to understand it, so it can be fixed.

Can you provide any further information? For example which questions are in the wrong context? Can you look at the task logs for the transfer_question_categories and transfer_questions Ad-hoc tasks, which will have run just after you upgraded your site. Are there any interesting error messages in there?
Φωτογραφία Core developers Φωτογραφία Documentation writers Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers

Some updates about this - there has acutally been some useful progress:

  1. As an iterim measure, the fix for MDL-87356 has been integrated. This puts back historic work-around for this issues in older versions - the background task which deletes random questions if they are created somehow - and that should stop the expoenetial growth. The bad news is that that just missed getting into Modle 5.1.1 / 5.0.4 / 4.5.8. The good news is that, because of the impact of this, they made a special case, and added the fix to the 4.5 branch as well. If you are suffering from this issue, and know how to add the fix for a sepecific issue to your Moodle site (git cherry pick) you might want to consider taking this fix now.
  2. Also, Mark Johnson has coded what is hopefully the final fix for this problem, MDL-73602. That should be included in Moodle 5.2, and then finally this problem should be solved the right way at root cause.

Moodle in English -> Web services -> Get questiontext file url via api -> Get questiontext file url via api

από Tim Hunt -
Φωτογραφία Core developers Φωτογραφία Documentation writers Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers
In general, the file URL needs to contain the infromation requried to verify that a user trying to access a file has the required permissions to do so. Your observation, that for questions, this is different to many other files, is correct.

In what situation are you trying to get the file URLs?