Forum .LRN Q&A: Homework folder handling weird

Collapse
Posted by Joerg Winckler on
I ask my students to use the homework folders to pass back their results. When they upload the content dotlrn seems to store the file into a file named "index" loosing the document specific extension. This is fine as long as a browser can deal with the content. But sometimes this is content which cannot be presented by a browser. When I download it (save link as ...) I just get a file named "index" (see above). When I click on "Details" I get a dump from the system.

Any help is appreciated

J. Winckler

-- dump info first lines ---
Request Error
Name was not encoded
    while executing
"dotlrn_homework::decode_name $name"
    invoked from within
"set name [dotlrn_homework::decode_name $name]"
    ("uplevel" body line 48)
    invoked from within
"uplevel {
          ad_page_contract {

--- end dump info ---

Collapse
Posted by Tracy Adams on
The system looks like it is storing the original name, but serving it via the Url "index".  Interestingly enough, it works differently than file storage.

I wasn't able to reproduce the bug above.

Joerg, is there a way I can become a user on your system and see the two problems?

Thank you,
Tracy

Collapse
Posted by Tracy Adams on
Joerg,

I'm aiming to release 2.0.3 on Friday.  I've been working with Heidelberg on their blocking issues and almost done.

I haven't been able to reproduce this issue.  If we want it in the release I'll need access to the system or a way to reproduce it.  We should also open a new bug in the bug tracker.

Please contact me ASAP. If I don't here from you, I'll move on with the release and we can work on getting it into a future release.

Tracy

Collapse
Posted by Martin Magerl on
Hi, the "details link" problem is focused in bug #1068.
There are some additional issues, like the "save as" problem, I mentioned there and fixed with a patch.
Collapse
Posted by Joerg Winckler on
Thank you very much for the hint. We (in fact, Holger Merettig) will install the patch and try again.

Best regards,

Jörg

Collapse
Posted by Tracy Adams on
<blockquote>>>I ask my students to use the homework folders to pass back their results. When they upload the content dotlrn seems to store the file into a file named "index" loosing the document specific extension. This is fine as long as a browser can deal with the content. But sometimes this is content which cannot be presented by a browser. When I download it (save link as ...) I just get a file named "index" (see above).
</blockquote>

This part is fixed in the dotlrn-2-0 branch.  The files are now downloaded with their orignal name.  It will be in dotlrn-2-0-3.

Going to look at the patch for the details link now.

Collapse
Posted by Tracy Adams on
This is bug 1068.  Fixes are on the dotlrn-2-0 branch.  Someone needs to test the postgres version.