Comments (7)
further details:
we should not rely on welknow because it could be possible that there are multiple owncloud instances running and the contacts app should always connect to its own instance.
from contacts.
This is part of the dav lib. We might have to hack in and disable the well-known-request.
from contacts.
diff --git a/js/public/script.js b/js/public/script.js
index 6035cec..771e10b 100644
--- a/js/public/script.js
+++ b/js/public/script.js
@@ -468,6 +468,7 @@ app.service('DavClient', function() {
app.service('DavService', ['DavClient', function(client) {
return client.createAccount({
server: OC.linkToRemoteBase('dav/addressbooks'),
+ useProvidedPath: true,
accountType: 'carddav'
});
}]);
diff --git a/js/services/dav_service.js b/js/services/dav_service.js
index 0606584..9981d37 100644
--- a/js/services/dav_service.js
+++ b/js/services/dav_service.js
@@ -1,6 +1,7 @@
app.service('DavService', ['DavClient', function(client) {
return client.createAccount({
server: OC.linkToRemoteBase('dav/addressbooks'),
- accountType: 'carddav'
+ accountType: 'carddav',
+ useProvidedPath: true
});
}]);
diff --git a/js/vendor/dav/dav.js b/js/vendor/dav/dav.js
index 4844c34..a961ed4 100644
--- a/js/vendor/dav/dav.js
+++ b/js/vendor/dav/dav.js
@@ -683,7 +683,7 @@ var serviceDiscovery = _co2['default'].wrap(regeneratorRuntime.mark(function cal
uri = _url2['default'].format({
protocol: endpoint.protocol,
host: endpoint.host,
- pathname: '/.well-known/' + options.accountType
+ pathname: (!options.useProvidedPath ? '/.well-known/' + options.accountType : endpoint.pathname)
});
req = request.basic({ method: 'GET' });
context$1$0.prev = 5;
This worked, but I don't feel very comfortable patching a JS lib. Also there is now a GET and a PROPFIND on the same URL, not sure if this is intended?
from contacts.
@nickvergessen thanks for looking into this.
It seems like the dav library was the wrong choice. Therefore we will probably exchange the library for davclient.js in version 2.0 which is already used by core (files) and calendar.
But for version 1.0 we should keep it. So let's fix this as hacky as we want for now.
@DeepDiver1975 do you agree on this?
from contacts.
But for version 1.0 we should keep it. So let's fix this as hacky as we want for now.
what about sucking in the dav client lib so that we can for now easier adjust it?
from contacts.
@DeepDiver1975 you mean instead of importing it via bower?
If so, yes let's do that.
from contacts.
you mean instead of importing it via bower?
yes - just copy and paste
from contacts.
Related Issues (20)
- Sort by Organization HOT 1
- Cannot select the addressbook where to import. HOT 3
- Include better error reporting on contact import
- Valid timestamp in vcard HOT 3
- JS tests failing in CI HOT 4
- Feature request: api or other ways to connect to contact from outside ? HOT 3
- javascript tests failing in CI HOT 1
- js-tests failing in drone CI HOT 1
- HTTP error code 412 when trying to add/update a contact HOT 3
- Adding a field doesn't "stick" across logins
- Javascript tests are failing in CI HOT 4
- Release contacts 1.5.6 HOT 6
- Nightly CI JS test coverage not found HOT 1
- JS tests fail often in CI HOT 1
- [QA] white text on light green background is hard to read
- [QA] notes input field can be dragged "underneath" items in second column
- [QA] Upload button silently does nothing
- JavaScript tests are not running in drone CI HOT 1
- javascript-tests pipeline is failing and needs further investigation HOT 13
- Failure in `phpstan-php7.4` `install-app-php-contacts` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contacts.