Giter Site home page Giter Site logo

Comments (7)

kcoleman-marklogic avatar kcoleman-marklogic commented on June 12, 2024

Sravan, just to make sure we're all talking about the same thing:

You said you expect to see the system default collection. You know this is NOT what you set when you call DocumentWriteSet.addDefault, right? That just sets the default for the write set. That is not the system default.

The system default is the empty set UNLESS you configure default collections for a specific user. Did you do that?

You would have to have defined them when you called sec:create-user or by calling sec:user-default-collections (or through the admin interface).

from java-client-api.

sravanr avatar sravanr commented on June 12, 2024

Yes , I did mention that in the bug
'I have user with default permissions and collection uri and I see the following behavior'

from java-client-api.

sammefford avatar sammefford commented on June 12, 2024

Sravan, I didn't attempt to get your test working to validate, but I made a simple fix that I expect to be exactly what you're looking for. Let me know if it's difficult at all for you to rerun your test.

from java-client-api.

sravanr avatar sravanr commented on June 12, 2024

I still see my test not pulling system default collection if you only update properties or quality

from java-client-api.

sammefford avatar sammefford commented on June 12, 2024

Sravan, this is expected behavior for the Bulk API. I had a long conversation with Erik on Friday to make sure I understood. For single document update it works as you were expecting, where setting one category of metadata uses system defaults for the other categories. But for Bulk write it's all-or-nothing--if you set any metadata you don't get system defaults on other metadata categories.

from java-client-api.

sravanr avatar sravanr commented on June 12, 2024

After long chain of discussion in email, conclusion I understand is ' lets not change the existing behavior how it works now'

from java-client-api.

sammefford avatar sammefford commented on June 12, 2024

For now that is correct. We need to get this release launched then come back to this when we have time to dive in and talk through it.

from java-client-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.