bugFle3 is a Learning Environment - Bugs: bug #178, CourseContext with an empty long...

 
 

bug #178: CourseContext with an empty long description breaks FLE

Submitted by:  Tarmo Toikkanen <tarmo>
Submitted on:  Tue 07 May 2002 10:47:48 AM UTC  
 
Category: Knowledge BuildingSeverity: Normal
Item Group: Bad functionalityStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Client software: Server software: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 07 May 2002 10:53:40 AM UTC, comment #2:

[from previous tracker]
[submitted at 15/11 2001 20:48 by Anonymous]

If descr_long is empty, then it gets the string empty in it self.
Fixed, yes, yes.

Tarmo Toikkanen <tarmo>
Project Administrator
Tue 07 May 2002 10:53:38 AM UTC, comment #1:

[from previous tracker]
[submitted at 14/11 2001 09:45 by Anonymous]

When an empty "long description" is entered, the document that is actually stored into the database is:
'&lt;dtml-var standard_html_header&gt;
&lt;h2&gt;&lt;dtml-var title_or_id&gt;&lt;/h2&gt;
&lt;p&gt;
This is the &lt;dtml-var id&gt; Document.
&lt;/p&gt;
&lt;dtml-var standard_html_footer&gt;''
Compare this to a description containing "foo", which then stores just the "foo" into the database.

Tarmo Toikkanen <tarmo>
Project Administrator
Tue 07 May 2002 10:47:48 AM UTC, original submission:

[from previous tracker]
[submitted at 13/11 2001 17:11]

Entering a course context with an empty "long description" will cause all display dtml files to produce an error "KeyError; standard_html_header".
Apparently the error is due to the fact that the long description is stored as a dtml file. Why? Beats me... Come on, I just work here.
Probably should be fixed at entry time - either disallow an empty entry or replace an empty entry with dummy contents.
NOTE! Check that an empty "short description" does not break as well.
NOTE 2! Everything should be checked with "dirty" inputs and fixed as needed.

Tarmo Toikkanen <tarmo>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 07 May 2002 10:53:41 AM UTCtarmoStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
  Fixed ReleaseNone=>(Error - Not Found)
  Closed on-=>-

Back to the top


Powered by Savane 3.1-cleanup1