Ticket #8195 (closed Bug: fixed)

Opened 4 years ago

Last modified 3 years ago

plone.app.contentmenu bad generated id (bad XML syntax)

Reported by: dmunicio Owned by: garbas
Priority: minor Milestone: 3.3
Component: Infrastructure Keywords: newbie
Cc:

Description

There are some id attributes like "_advanced", "_folderChangeDefaultPage", etc. that are non XML syntax compliant (an id attribute should not start with and underscore).

You can see it easily with HTML Validator (Firefox plugin) when logged in Plone 3.0.6

I attach monkey patch. I could not find any feature that relies on these ids, so it seems to be safe.

Thanks

Attachments

Patches.py Download (13.0 KB) - added by dmunicio 4 years ago.
plone.app.contentmenu monkey patch
31branch_plone.app.contentmenu_8195.patch Download (12.0 KB) - added by garbas 3 years ago.
31branch_CMFPlone_fix_8195.patch Download (643 bytes) - added by garbas 3 years ago.
trunk_Products.CMFPlone_fix.patch Download (697 bytes) - added by garbas 3 years ago.
trunk_plone.app.contentmenu_fix.patch Download (12.0 KB) - added by garbas 3 years ago.

Change History

Changed 4 years ago by dmunicio

plone.app.contentmenu monkey patch

comment:1 Changed 4 years ago by limi

  • Owner limi deleted
  • Component changed from Accessibility to Infrastructure

I'll let the infrastructure people evaluate this.

comment:2 Changed 4 years ago by hannosch

  • Keywords newbie added; contentmenu xml syntax removed

The monkey patch isn't very readable, but the ticket description is clear enough.

Eliminate all ids starting with an underscore and test that all behavior is still working fine (or grep for those ids in the codebase).

comment:3 Changed 3 years ago by claytron

  • Status changed from new to assigned
  • Owner set to claytron

comment:4 Changed 3 years ago by garbas

  • Status changed from assigned to closed
  • Resolution set to fixed

removed ids with underscore in front od them. grep for those ids if there apear somewhere else

comment:5 Changed 3 years ago by garbas

  • Status changed from closed to reopened
  • Resolution fixed deleted

open it to close it with commit

from #plone-tuneup: 21:04 < DigitalD> garbas: if you mention the ticket number in the form of (fixes #ticketnum) in your svn commit the tracker will automatically close the ticket

Changed 3 years ago by garbas

Changed 3 years ago by garbas

comment:6 Changed 3 years ago by garbas

valid patches are:

  • 31branch_plone.app.contentmenu_8195.patch
  • 31branch_CMFPlone_fix_8195.patch

this is done for 3.1 branch (trunk comming in few minutes)

comment:7 Changed 3 years ago by claytron

  • Status changed from reopened to new
  • Owner changed from claytron to garbas

Changed 3 years ago by garbas

Changed 3 years ago by garbas

comment:8 Changed 3 years ago by garbas

valid patches for plone trunk are:

  • trunk_Products.CMFPlone_fix.patch
  • trunk_plone.app.contentmenu_fix.patch

comment:9 Changed 3 years ago by calvinhp

  • Status changed from new to closed
  • Resolution set to fixed

(In [22380]) Fix non XML syntax compliant ids in contentmenus. Closes #8195

comment:10 Changed 3 years ago by hannosch

  • Milestone changed from 3.x to 3.3
Note: See TracTickets for help on using tickets.