Moodle

Portfolio: wrong file name in box.net

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: Portfolio API
  • Labels:
    None
  • Environment:
    LAMP
  • Affected Branches:
    MOODLE_20_STABLE

Description

I couldn't reproduce exactly but sometimes the file saved on box.net as a very weird name (see screen capture). It happens to me twice at different time. The last time I had it: I edited a post that I already sent, add to portfolio, try to create a folder already existing in box.net, export it.
I tried it again and it worked. strange...

Issue Links

Activity

Hide
Penny Leach added a comment -

That is the content hash of the file in Moodle. I cannot do anything except the following:

1. Send the file on disk to box.net in a HTTP post
2. Send a rename request to box.net

I assume that 2 sometimes fails but I don't know why

Show
Penny Leach added a comment - That is the content hash of the file in Moodle. I cannot do anything except the following: 1. Send the file on disk to box.net in a HTTP post 2. Send a rename request to box.net I assume that 2 sometimes fails but I don't know why
Hide
Penny Leach added a comment -

reassigning to portfolio, not repository

Show
Penny Leach added a comment - reassigning to portfolio, not repository
Hide
Penny Leach added a comment -

i've committed a patch that tries 3 times to rename a file if it fails.. i don't think there's anything we can do here, as far as i can see it's a problem with box.net.

jerome can you keep testing this and see if you get the error again?

Show
Penny Leach added a comment - i've committed a patch that tries 3 times to rename a file if it fails.. i don't think there's anything we can do here, as far as i can see it's a problem with box.net. jerome can you keep testing this and see if you get the error again?
Hide
Penny Leach added a comment -

assigning QA to Jerome.

Show
Penny Leach added a comment - assigning QA to Jerome.
Hide
Penny Leach added a comment -

closing. there's nothing i can do here except keep trying to rename the file until it works

Show
Penny Leach added a comment - closing. there's nothing i can do here except keep trying to rename the file until it works
Hide
Jerome Mouneyrac added a comment - - edited

Thanks Penny, I forgot this issue. I've tried to retest but I have an error.
What I did:
enabled portfolio
added box.net with API key and updated box.net with the suggested callbackurl (http://jerome.moodle.local:8888/Moodle_HEAD/moodle/portfolio/add.php?postcontrol=1)
I went into an empty course
create a discussion
read the discussion
click on save => the boxnet login is displayed
connect on box.net => boxnet return to this url : http://jerome.moodle.local:8888/Moodle_HEAD/moodle/portfolio/add.php?postcontrol=1&ticket=v3s2jm4302uo6zj725a1cvkbk2d4xdms&auth_token=fdrcpq949mzgcy92oh69tcz2fgz095td

I've got the following error message: A required parameter (sesskey) was missing

Show
Jerome Mouneyrac added a comment - - edited Thanks Penny, I forgot this issue. I've tried to retest but I have an error. What I did: enabled portfolio added box.net with API key and updated box.net with the suggested callbackurl (http://jerome.moodle.local:8888/Moodle_HEAD/moodle/portfolio/add.php?postcontrol=1) I went into an empty course create a discussion read the discussion click on save => the boxnet login is displayed connect on box.net => boxnet return to this url : http://jerome.moodle.local:8888/Moodle_HEAD/moodle/portfolio/add.php?postcontrol=1&ticket=v3s2jm4302uo6zj725a1cvkbk2d4xdms&auth_token=fdrcpq949mzgcy92oh69tcz2fgz095td I've got the following error message: A required parameter (sesskey) was missing
Hide
Penny Leach added a comment -

oh jerome, this is bad timing - i had been working on the main part of the portfoli api and obviously the boxnet plugin needed updating. i'll ping you again when it's working again.

Show
Penny Leach added a comment - oh jerome, this is bad timing - i had been working on the main part of the portfoli api and obviously the boxnet plugin needed updating. i'll ping you again when it's working again.
Hide
Jerome Mouneyrac added a comment -

Ahah no worries that's my QA instinct

Show
Jerome Mouneyrac added a comment - Ahah no worries that's my QA instinct
Hide
Penny Leach added a comment -

reopening until we fix the related bug

Show
Penny Leach added a comment - reopening until we fix the related bug
Hide
Jerome Mouneyrac added a comment -

all works for me, closing it, thanks Penny

Show
Jerome Mouneyrac added a comment - all works for me, closing it, thanks Penny

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: