Xpages dominodocument databaseName issue/bug

I have got an XPages application that resides in one database and accesses data in another database. The intent is to run this application both on server and on local desktop. It will be Xpages in NotesClient. When I setup a dominoView datasource everything works fine. When I setup a dominoDocument datasource in the same database I can no longer load the XPage in the client and it says that it cannot open the database specified in the databaseName attribute of the dominoDocument. The databaseName is specified there by path in relation to the domino directory. The path is the same as that for the dominoView datasource.

I figured out the following:

a) for the dominoView datasource, it opens the database on the server from which the Xpage runs (which is expected and desired). This way I do not have to specify a server and the application will also work in local disconnected mode

b) for the dominoDocument datasource, it tries to open a local copy of the database even though the Xpage itself is served from a server. This is confirmed by the fact that if I specify the database name as “Server!!databasepath” I can open the datasource without a problem.

I can certainly live with this but is there any specific reason why the two datasources should behave differently. One happy only with path and deducing the server, whereas the other would always point out to the local copy and not the server copy.

It seem to be a bug.