Skip to content

Problems saving xdata block combinations #1630

@TwaHendrik

Description

@TwaHendrik

Hello,

we receive an error message when we edit a class with an xdata block via Server-Side editing:

Failed to save 'Example.cls': Unable to write file 'isfs://localhost:test/Example.cls' (Body of '403 Forbidden' response to /api/atelier/v8/TEST/doc/Example.cls?ignoreConflict=1 request is not JSON. Is the web server suppressing detailed errors?)

We were able to simplify the example to this code:

Class Example Extends %RegisteredObject
{
XData motherPane [ XMLNamespace = "http://www.intersystems.com/zen" ]
{
<pane xmlns="http://www.intersystems.com/zen" >
<MYCOMP:MyTablePane>
<column  
filterType="query" 
filterQuery="SELECT 'Test' union SELECT 'Test'" />
</MYCOMP:MyTablePane>
</pane>
}
}

It seems that the problem occurs with the union. If you set filterQuery="SELECT ‘Test’", there is no problem. If you set filterQuery="SELECT ‘Test’ union SELECT ‘Test’" /> with 6 spaces after the union, it also works.

The code can be successfully compiled in Studio,

For other classes with the Union combination, the same error occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions