The HTML that is created in webui causes note saving to fail

Bug #524555 reported by Roman Yepishev
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Fix Released
High
Rodrigo Moya

Bug Description

An attempt to create bulletted list with the following structure results in "Opening and ending tag mismatch: li line 1 and ul, line 1, column 171"

"""
Testing saving note 1

Testing saving note 2

    * 1
          o 1.1
                + 1.1.1
          o 1.2
    * 2
          o 2.1
                + 2.1.1
                      # 2.1.1.1
                + 2.1.2
          o 2.2
                + 2.2.1
                + 2.2.2
    * 3
    * 4
    * 5
"""

The HTML generated is:

"""
Testing saving note 1
<br>
<br>
Testing saving note 2
<br>
<br>
<ul>
  <li>1</li>
  <li>
    <ul>
      <li>1.1</li>
      <li>
        <ul>
          <li>1.1.1</li>
        </ul>
        <li>1.2</li>
      </ul>
      <li>2</li>
      <li>
       <ul>
         <li>2.1</li>
         <li>
           <ul>
             <li>2.1.1</li>
             <li>
               <ul>
                 <li>2.1.1.1</li>
               </ul>
               <li>2.1.2</li>
             </ul>
             <li>2.2</li>
             <li>
               <ul>
                 <li>2.2.1</li>
                 <li>2.2.2</li>
               </ul>
             </ul>
             <li>3</li>
             <li>4</li>
             <li>5</li>
           </ul>
"""
As you can see, the tree is not balanced. This causes internal server error and inability to save the note.

Roman Yepishev (rye)
visibility: private → public
Roman Yepishev (rye)
Changed in ubuntuone-servers:
importance: Undecided → High
tags: added: desktop+ notes webui
Changed in ubuntuone-servers:
status: New → Confirmed
Roman Yepishev (rye)
Changed in ubuntuone-servers:
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
Changed in ubuntuone-servers:
assignee: Ubuntu One Desktop+ team (ubuntuone-desktop+) → Rodrigo Moya (rodrigo-moya)
status: Confirmed → In Progress
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

This should be fixed, in that it shouldn't crash or fail when saving. We still have wrong HTML being generated by the editor when using linked lists,though, but that's a separate bug

Changed in ubuntuone-servers:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.