Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTODO support #103

Open
christian-esken opened this issue Jan 24, 2019 · 9 comments
Open

VTODO support #103

christian-esken opened this issue Jan 24, 2019 · 9 comments

Comments

@christian-esken
Copy link

christian-esken commented Jan 24, 2019

Reproduce

Use the caldav4j library
Steps to reproduce the issue:

Version: com.github.caldav4j:caldav4j:0.9.2
Added dependencies:
implementation 'com.trivago:triava:2.0.1'
implementation 'javax.servlet:javax.servlet-api:3.1.0'

Server: OwnCloud with Calendar extension
Code: https://github.com/christian-esken/todo4you/blob/master/app/src/main/java/de/todo4you/todo4you/caldav/VTodoCalDAVCollection.java

I expect

caldav4j to support VTODO entities. Operations: GET. ADD. MODIFY (Hint: these may not be offical DAV terms, but it should be clear what they mean. In SQL terms; SELECT, INSERT, UPDATE).

Instead

MODIFY is not supported, as far as I saw in examples, docs and browsing source code. GET and ADD is possible.

Notes

This ticket can be treated as a question. What I would like to know:

@ioggstream
Copy link
Member

Hi @christian-esken,

can you please add an HTTP TRACE of the error?

@TheAntimist
Copy link
Member

TheAntimist commented Jan 26, 2019

From what I see, VTODO should already be supported in CalDAVCollection, based on the current release, we only utilize VCALENDAR for the main object. You can choose to utilize VTODO component if you wish to do so. If there is something where we limit to VEVENT do let us know.

We do have lower level api's under the methods if you wish to utilize one as such.

@christian-esken
Copy link
Author

christian-esken commented Jan 28, 2019

There are some hardcoded VEVENT constants used in CalDAVCollection, so I worked around in changing them to VTODO in my VTodoCalDAVCollection.java. I willl give details soon. I feel pretty overloaded currently, so let me check first and I will give feedback in a week.

@ioggstream
Copy link
Member

ioggstream commented Jan 28, 2019

@christian-esken can you point to them?

are you referencing this method?

do other methods work?

@ioggstream
Copy link
Member

Once we remove deprecated methods, we should probably generalize getMasterEvent -> getMasterComponent.

@christian-esken PR and associated tests (possibily small, incremental PR since we're now using circleci for CI) are welcome for both ;)

@TheAntimist
Copy link
Member

Sounds good, will deal with those soon.

@christian-esken
Copy link
Author

christian-esken commented Jan 31, 2019

@ioggstream The methods are:

  • CalDAVCollection.updateMasterEvent()
  • ICalendarUtils.getMasterEvent()

I am refering the 0.9x version. If I create a PR, should I directly head for the master branch? I do not see a branch for 0.9x. So I would just fork, work on master and do a PR, right?

@ioggstream
Copy link
Member

ioggstream commented Jan 31, 2019 via email

@TheAntimist
Copy link
Member

I agree with @ioggstream, our development is now focused on Master, which is currently based on Apache HttpClient 4 (1.0.0-rc.2 on maven) . As mentioned some API changes do require you to update your app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants