Giter Site home page Giter Site logo

Comments (12)

ajs6f avatar ajs6f commented on June 15, 2024 1

Yup, that did it, thanks!

from trellis-cassandra.

acoburn avatar acoburn commented on June 15, 2024

OK, this is not entirely unsurprising. Because WebDAV doesn't specify the semantics of POST, all resource creation occurs via PUT (i.e. adding a file to a directory is a PUT operation). However, Trellis assumes that PUT for creation will do an uncontained creation of the resource. In order to combine those two patterns, the WebDAV module intercepts all PUT requests for creation and rewrites those as POST with an appropriate Slug header. And thus, because these tests are checking for uncontained PUT, they will fail, since with the WebDAV module in place, an uncontained PUT is not possible.

One possibility that I've been considering anyway involves adding a configuration option such that the behavior of PUT-on-creation can be controlled to either do contained or uncontained creation. (In the past we had the contained PUT in place, but that was changed in 0.8)

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

Ok, cool. That seems fine to me-- I mean we obviously have some design thinking, but this doesn't really represent an error right now. Do you know what the Memento involvement is?

from trellis-cassandra.

acoburn avatar acoburn commented on June 15, 2024

I wired the webdav module into the triplestore-based application, and I definitely see the test failure with testCreateContainerViaPut. Curiously, I don't encounter the memento errors. All those errors seem to involve using PUT to replace an LDP-NR. Can you verify that PUT for replacing a binary resource works properly in T-C*?

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

It certainly does not with WebDAV in place, for creating or replacing. Is that what you meant, or you meant without WebDAV?

from trellis-cassandra.

acoburn avatar acoburn commented on June 15, 2024

I meant: does it work properly without WebDAV enabled

But given that the tests were passing previously, I can only assume that the answer is "yes"

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

Yes, those tests normally pass. 😁

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

Would you like a PR to watch in CI?

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

I wonder if this has anything to do with #55.

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

Here is a branch.

from trellis-cassandra.

ajs6f avatar ajs6f commented on June 15, 2024

Definitely improvement: the four Memento tests pass for me now, but I am now getting:

[ERROR] Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.498 s <<< FAILURE! - in edu.si.trellis.LdpBasicContainerIT
[ERROR] testCreateContainerViaPut  Time elapsed: 0.004 s  <<< ERROR!
java.lang.ExceptionInInitializerError
	at org.trellisldp.test.LdpBasicContainerTests.testCreateContainerViaPut(LdpBasicContainerTests.java:210)
	...
Caused by: java.lang.IllegalStateException: No ConfigProviderResolver implementation found!
	at org.eclipse.microprofile.config.spi.ConfigProviderResolver.instance(ConfigProviderResolver.java:122)
	at org.eclipse.microprofile.config.ConfigProvider.<clinit>(ConfigProvider.java:74)
	... 42 more

You appear to have used the new configuration element there. I guess I now need to have a Microprofile Config impl on line for tests?

from trellis-cassandra.

acoburn avatar acoburn commented on June 15, 2024

Yes, you'll now need a microprofile config impl for the tests.

from trellis-cassandra.

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.