OFS.ObjectManager should be more flexible with allowable ids
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
OFS.ObjectManag
bad_
However this is inconsistent with the URL specification [http://
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
hpath = hsegment *[ "/" hsegment ]
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
safe = "$" | "-" | "_" | "." | "+"
extra = "!" | "*" | "'" | "(" | ")" | ","
escape = "%" hex hex
unreserved = alpha | digit | safe | extra
uchar = unreserved | escape
So logically any character is valid in an hsegment as long as it is properly escaped. However, the CGI specification [http://
Assuming that the only ascii ids limitation remains, then the regex could be changed to:
# match any control character and '/'
bad_
Though I'd be happy to just have '&' added so that more file names are valid ids ;-)
Laurence Rowe (elro)
Changed in zope2: | |
importance: | Medium → Wishlist |
Changed in zope2: | |
status: | New → Confirmed |
The zope2 project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope2.