Opened 11 years ago
Closed 11 years ago
#10035 closed defect (fixed)
sojox.atom.io.model is overly conservative.
Reported by: | Jared Jurkiewicz | Owned by: | Jared Jurkiewicz |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dojox | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Reported from my co-worker
In dojox.atom.io.model.js, in buildFromDom: function(/*DOM node*/node) there is code to throw an error if any namespace
is used in the service document besides app, atom and purl. This prevents extending service docs such as is defined
in the CMIS Rest binding (OASIS proposed standards - see http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=cmis
). This would prevent anyone from using dojo in building CMIS clients.
The fix would be simple - removing the code that throws the error
var _nlsResources = dojo.i18n.getLocalization("dojox.atom.io", "messages"); throw new Error(_nlsResources.badNS);
That would allow parsing to continue, but the Workspace would ignore any unknown tags (tags in unknown namespaces). In most cases, at least according to my co-worker, this is okay for now.
So, removing the check.
Change History (3)
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [20424]) Minor tweak to model.js to be less conservative with Workspace entries. \!strict fixes #10035