{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/richdocuments/issues/58","repository_url":"https://api.github.com/repos/nextcloud/richdocuments","labels_url":"https://api.github.com/repos/nextcloud/richdocuments/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/richdocuments/issues/58/comments","events_url":"https://api.github.com/repos/nextcloud/richdocuments/issues/58/events","html_url":"https://github.com/nextcloud/richdocuments/issues/58","id":229906280,"number":58,"title":"cURL error 3: <url> malformed","user":{"login":"bperel","id":1484692,"avatar_url":"https://avatars1.githubusercontent.com/u/1484692?v=4","gravatar_id":"","url":"https://api.github.com/users/bperel","html_url":"https://github.com/bperel","followers_url":"https://api.github.com/users/bperel/followers","following_url":"https://api.github.com/users/bperel/following{/other_user}","gists_url":"https://api.github.com/users/bperel/gists{/gist_id}","starred_url":"https://api.github.com/users/bperel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bperel/subscriptions","organizations_url":"https://api.github.com/users/bperel/orgs","repos_url":"https://api.github.com/users/bperel/repos","events_url":"https://api.github.com/users/bperel/events{/privacy}","received_events_url":"https://api.github.com/users/bperel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-05-19T08:32:54Z","updated_at":"2017-08-10T16:31:46Z","closed_at":null,"body":"<!--\r\nThanks for reporting issues back to Nextcloud! This is the issue tracker of Nextcloud, if you have any support question please check out https://nextcloud.com/support\r\n\r\nThis is the bug tracker for the richdocuments component. Find other components at https://github.com/nextcloud/\r\n\r\nFor reporting potential security issues please see https://nextcloud.com/security/\r\n\r\nTo make it possible for us to help you please fill out below information carefully.\r\n--> \r\n### Steps to reproduce\r\n1. Open any document file on my instance\r\n\r\n### Expected behaviour\r\nI should see my document\r\n\r\n### Actual behaviour\r\nI see an error on the page and in the error log\r\n\r\n### Server configuration\r\n<!--\r\nYou can use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate\r\n-->\r\n**Operating system**:\r\nUbuntu 16.04.2\r\n\r\n**Web server:**\r\nApache 2.2\r\n\r\n**Database:**\r\nMariaDB\r\n\r\n**PHP version:**\r\n7.0.15\r\n\r\n**Nextcloud version:** (see Nextcloud admin page)\r\n12.0 beta 4\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:**\r\nUpdated from 12.0 beta 2 but same issue existed\r\n\r\n**Where did you install Nextcloud from:**\r\nPHP install script\r\n\r\n**Signing status:**\r\n<details>\r\n<summary>Signing status</summary>\r\n\r\n```\r\nNo errors have been found.\r\n```\r\n</details>\r\n\r\n**List of activated apps:**\r\n<details>\r\n<summary>App list</summary>\r\n\r\n```\r\nEnabled:\r\n  - activity: 2.5.2\r\n  - admin_audit: 1.2.0\r\n  - bruteforcesettings: 1.0.2\r\n  - calendar: 1.5.2\r\n  - comments: 1.2.0\r\n  - dav: 1.3.0\r\n  - federatedfilesharing: 1.2.0\r\n  - federation: 1.2.0\r\n  - files: 1.7.2\r\n  - files_external: 1.3.0\r\n  - files_pdfviewer: 1.1.1\r\n  - files_retention: 1.1.2\r\n  - files_sharing: 1.4.0\r\n  - files_texteditor: 2.4.1\r\n  - files_trashbin: 1.2.0\r\n  - files_versions: 1.5.0\r\n  - files_videoplayer: 1.1.0\r\n  - firstrunwizard: 2.1\r\n  - gallery: 17.0.0\r\n  - logreader: 2.0.0\r\n  - lookup_server_connector: 1.0.0\r\n  - nextcloud_announcements: 1.1\r\n  - notifications: 2.0.0\r\n  - password_policy: 1.2.2\r\n  - provisioning_api: 1.2.0\r\n  - richdocuments: 1.12.27\r\n  - serverinfo: 1.2.0\r\n  - sharebymail: 1.2.0\r\n  - survey_client: 1.0.0\r\n  - systemtags: 1.2.0\r\n  - theming: 1.3.0\r\n  - twofactor_backupcodes: 1.1.1\r\n  - updatenotification: 1.2.0\r\n  - workflowengine: 1.2.0\r\nDisabled:\r\n  - documents\r\n  - encryption\r\n  - music\r\n  - user_external\r\n  - user_ldap\r\n</details>\r\n\r\n**The content of config/config.php:**\r\n<details>\r\n<summary>Config report</summary>\r\n\r\n```json\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"ocd4udorn6gg\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"...\",\r\n            \"....no-ip.org\",\r\n            \"....ddns.net\",\r\n            \"....homenet.org\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/nextcloud\\/data\",\r\n        \"overwrite.cli.url\": \"http:\\/\\/...\\/nextcloud\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"12.0.0.21\",\r\n        \"logtimezone\": \"UTC\",\r\n        \"installed\": true,\r\n        \"maintenance\": false,\r\n        \"theme\": \"\",\r\n        \"loglevel\": 2,\r\n        \"trashbin_retention_obligation\": \"auto\",\r\n        \"appstore.experimental.enabled\": true,\r\n        \"dbname\": \"owncloud\",\r\n        \"dbhost\": \"127.0.0.1\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"preview_libreoffice_path\": \"\\/usr\\/bin\\/libreoffice\",\r\n        \"updater.secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\r\n        \"updater.release.channel\": \"beta\",\r\n        \"mail_from_address\": \"...\",\r\n        \"mail_smtpmode\": \"php\",\r\n        \"mail_smtpauthtype\": \"LOGIN\",\r\n        \"mail_domain\": \"...\"\r\n    }\r\n}\r\n```\r\n</details>\r\n\r\n**Are you using external storage, if yes which one:** no\r\n\r\n**Are you using encryption:** Letsencrypt certificate\r\n\r\n**Are you using an external user-backend, if yes which one:** no\r\n\r\n### Client configuration\r\n**Browser:**\r\nChrome 58\r\n\r\n**Operating system:**\r\nWindows 7\r\n\r\n### Logs\r\n#### Web server error log\r\n<details>\r\n<summary>Web server error log</summary>\r\nNone\r\n</details>\r\n\r\n#### Nextcloud log (data/nextcloud.log)\r\n(JSON formated and duplicate back-slashes removed)\r\n```\r\n{\r\n    \"reqId\": \"SB6dWRTt22YYFP6XJwRx\",\r\n    \"level\": 3,\r\n    \"time\": \"2017-05-19T07:41:56+00:00\",\r\n    \"remoteAddr\": \"...\",\r\n    \"user\": \"...\",\r\n    \"app\": \"richdocuments\",\r\n    \"method\": \"GET\",\r\n    \"url\": \"/nextcloud/index.php/apps/richdocuments/index?fileId=167904&requesttoken=%2F21lU39ibZspQfU6IrTk7MpBSBfR6pPj%2Bdrq2QTM9Iw%3D%3AyiQsF0ZNXqNqN94VScej2YEKCiLk38mNnLGv6kWdrOU%3D\",\r\n    \"message\": \"Exception: {\\\"Exception\\\":\\\"GuzzleHttp\\Exception\\RequestException\\\",\\\"Message\\\":\\\"cURL error 3: <url> malformed\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php(103): GuzzleHttp\\Exception\\RequestException::wrapException(Object(GuzzleHttp\\Message\\Request), Object(GuzzleHttp\\Ring\\Exception\\RingException))n#1 /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\\RequestFsm->__invoke(Object(GuzzleHttp\\Transaction))n#2 /var/www/html/nextcloud/3rdparty/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\\RequestFsm->GuzzleHttp\\{closure}(Array)n#3 /var/www/html/nextcloud/3rdparty/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\\Promise\\FulfilledPromise->then(Object(Closure), NULL, NULL)n#4 /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\\Ring\\Future\\CompletedFutureValue->then(Object(Closure), NULL, NULL)n#5 /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php(134): GuzzleHttp\\Message\\FutureResponse::proxy(Object(GuzzleHttp\\Ring\\Future\\CompletedFutureArray), Object(Closure))n#6 /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\\RequestFsm->__invoke(Object(GuzzleHttp\\Transaction))n#7 /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\\Client->send(Object(GuzzleHttp\\Message\\Request))n#8 /var/www/html/nextcloud/lib/private/Http/Client/Client.php(138): GuzzleHttp\\Client->get('/hosting/discov...', Array)n#9 /var/www/html/nextcloud/apps/richdocuments/lib/WOPI/DiscoveryManager.php(84): OC\\Http\\Client\\Client->get('/hosting/discov...')n#10 /var/www/html/nextcloud/apps/richdocuments/lib/WOPI/Parser.php(41): OCA\\Richdocuments\\WOPI\\DiscoveryManager->get()n#11 /var/www/html/nextcloud/apps/richdocuments/lib/TokenManager.php(94): OCA\\Richdocuments\\WOPI\\Parser->getUrlSrc('application/vnd...')n#12 /var/www/html/nextcloud/apps/richdocuments/lib/Controller/DocumentController.php(108): OCA\\Richdocuments\\TokenManager->getToken(*** sensitive parameters replaced ***)n#13 [internal function]: OCA\\Richdocuments\\Controller\\DocumentController->index('167904')n#14 /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(160): call_user_func_array(Array, Array)n#15 /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(90): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Richdocuments\\Controller\\DocumentController), 'index')n#16 /var/www/html/nextcloud/lib/private/AppFramework/App.php(114): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Richdocuments\\Controller\\DocumentController), 'index')n#17 /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\\AppFramework\\App::main('OCA\\\\Richdocumen...', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)n#18 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)n#19 /var/www/html/nextcloud/lib/private/Route/Router.php(299): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)n#20 /var/www/html/nextcloud/lib/base.php(1000): OC\\Route\\Router->match('/apps/richdocum...')n#21 /var/www/html/nextcloud/index.php(40): OC::handleRequest()n#22 {main}\\\",\\\"File\\\":\\\"/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php\\\",\\\"Line\\\":51}\",\r\n    \"userAgent\": \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36\",\r\n    \"version\": \"12.0.0.21\"\r\n}\r\n```\r\n\r\n#### Browser log\r\n<details>\r\n<summary>Browser log</summary>\r\nNo console error.\r\n\r\nPage rendering :\r\n![chrome_2017-05-19_10-25-50](https://cloud.githubusercontent.com/assets/1484692/26239638/1eafb88a-3c7e-11e7-9178-7fec656adbf0.png)\r\n\r\nPage request : \r\n![chrome_2017-05-19_10-27-55](https://cloud.githubusercontent.com/assets/1484692/26239639/1eb00f92-3c7e-11e7-8930-9bfc4ff056dd.png)\r\n\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/richdocuments/issues/comments/321604464","html_url":"https://github.com/nextcloud/richdocuments/issues/58#issuecomment-321604464","issue_url":"https://api.github.com/repos/nextcloud/richdocuments/issues/58","id":321604464,"user":{"login":"gruelfin","id":5794789,"avatar_url":"https://avatars3.githubusercontent.com/u/5794789?v=4","gravatar_id":"","url":"https://api.github.com/users/gruelfin","html_url":"https://github.com/gruelfin","followers_url":"https://api.github.com/users/gruelfin/followers","following_url":"https://api.github.com/users/gruelfin/following{/other_user}","gists_url":"https://api.github.com/users/gruelfin/gists{/gist_id}","starred_url":"https://api.github.com/users/gruelfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruelfin/subscriptions","organizations_url":"https://api.github.com/users/gruelfin/orgs","repos_url":"https://api.github.com/users/gruelfin/repos","events_url":"https://api.github.com/users/gruelfin/events{/privacy}","received_events_url":"https://api.github.com/users/gruelfin/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T16:31:46Z","updated_at":"2017-08-10T16:31:46Z","body":"i have the same problem"}}
{"actor":{"display_login":"gruelfin"}}