Title: ResponseCode 404 when try to download files from a NextCloud Folder · Issue #64 · a-schild/nextcloud-java-api · GitHub
Open Graph Title: ResponseCode 404 when try to download files from a NextCloud Folder · Issue #64 · a-schild/nextcloud-java-api
X Title: ResponseCode 404 when try to download files from a NextCloud Folder · Issue #64 · a-schild/nextcloud-java-api
Description: org.aarboard.nextcloud nextcloud-api 11.5.1 IntelliJ Ultimate IntelliJ IDEA 2021.2.1 (Ultimate Edition) Build #IU-212.5080.55, built on August 24, 2021 Java 11 Official and latest NextCloud Docker image without any further configurations...
Open Graph Description: org.aarboard.nextcloud nextcloud-api 11.5.1 IntelliJ Ultimate IntelliJ IDEA 2021.2.1 (Ultimate Edition) Build #IU-212.5080.55, built on August 24, 2021 Java 11 Official and latest NextCloud Docker ...
X Description: org.aarboard.nextcloud nextcloud-api 11.5.1 IntelliJ Ultimate IntelliJ IDEA 2021.2.1 (Ultimate Edition) Build #IU-212.5080.55, built on August 24, 2021 Java 11 Official and latest NextCloud Docker ...
Opengraph URL: https://github.com/a-schild/nextcloud-java-api/issues/64
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ResponseCode 404 when try to download files from a NextCloud Folder ","articleBody":"\u003cdependency\u003e\r\n\u003cgroupId\u003eorg.aarboard.nextcloud\u003c/groupId\u003e\r\n\u003cartifactId\u003enextcloud-api\u003c/artifactId\u003e\r\n\u003cversion\u003e11.5.1\u003c/version\u003e\r\n\u003c/dependency\u003e\r\n\r\nIntelliJ Ultimate IntelliJ IDEA 2021.2.1 (Ultimate Edition)\r\nBuild #IU-212.5080.55, built on August 24, 2021\r\nJava 11\r\n\r\nOfficial and latest NextCloud Docker image without any further configurations\r\n\r\nGiven Folder structure \"http://localhost:8080/apps/files/?dir=/TB/2021/2021-09/28\u0026fileid=23365\" contains XML- and PDF-Files.\r\n\r\n// 1. Create Connection to NextCloud\r\nNextcloudConnector connector = new NextcloudConnector(\"localhost\", false, \"8080\", \"admin\", \"mypwd\");\r\n// 2. List all files in testFolder = \"/TB/2021/2021-09/28\"\r\nList\u003cString\u003e fileNames = connector.listFolderContent(testFolder);\r\n for (String fileName : fileNames) {\r\n LOGGER.log(Level.INFO, \"filename \" + fileName);\r\n \r\n }\r\n3. But when i try to download all files with\r\n connector.download(fileName);\r\nthen the Exception org.aarboard.nextcloud.api.exception.NextcloudApiException: com.github.sardine.impl.SardineException: status code: 404, reason phrase: Unexpected response (404 Not Found) is thrown:\r\nFull Stacktrace is:\r\n\r\n\tat org.aarboard.nextcloud.api.webdav.Folders.listFolderContent(Folders.java:106)\r\n\tat org.aarboard.nextcloud.api.webdav.Folders.listFolderContent(Folders.java:83)\r\n\tat org.aarboard.nextcloud.api.webdav.Folders.listFolderContent(Folders.java:70)\r\n\tat org.aarboard.nextcloud.api.NextcloudConnector.listFolderContent(NextcloudConnector.java:665)\r\n\tat de.pkv.nextcloud.NCFolderManagerTest.testGetPDF(NCFolderManagerTest.java:36)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\r\n\tat org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)\r\n\tat org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)\r\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)\r\n\tat org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)\r\n\tat org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)\r\n\tat org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)\r\n\tat org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)\r\n\tat org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)\r\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)\r\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)\r\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)\r\n\tat org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)\r\n\tat org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)\r\n\tat org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:205)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:201)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)\r\n\tat org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)\r\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1541)\r\n\tat org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)\r\n\tat org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)\r\n\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1541)\r\n\tat org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)\r\n\tat org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)\r\n\tat org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)\r\n\tat org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)\r\n\tat org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)\r\n\tat com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71)\r\n\tat com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)\r\n\tat com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)\r\n\tat com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)\r\nCaused by: com.github.sardine.impl.SardineException: status code: 404, reason phrase: Unexpected response (404 Not Found)","author":{"url":"https://github.com/KlausAlberts","@type":"Person","name":"KlausAlberts"},"datePublished":"2021-09-28T10:09:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/64/nextcloud-java-api/issues/64"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:88291f6a-937b-aba5-29df-c0c70fdaec1b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC56:11805C:85584E:AB497A:69922493 |
| html-safe-nonce | 839c89c77bd89fb17551bb5ef6dbe517300cbf87eaff89cfd8adcb2368dce88b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzU2OjExODA1Qzo4NTU4NEU6QUI0OTdBOjY5OTIyNDkzIiwidmlzaXRvcl9pZCI6IjMxMjgwNjI3MTk2NzgzNTg2NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 49b8d4097e5e6fd0a90c5f0ce197f382652e7b9f784cde8c0a196ae8627c87f1 |
| hovercard-subject-tag | issue:1009550999 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/a-schild/nextcloud-java-api/64/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fcd8e1fcb4cad65ebdce7e4cc33d90eed84aea2020f8fde2297e3f030275e4a7/a-schild/nextcloud-java-api/issues/64 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fcd8e1fcb4cad65ebdce7e4cc33d90eed84aea2020f8fde2297e3f030275e4a7/a-schild/nextcloud-java-api/issues/64 |
| og:image:alt | org.aarboard.nextcloud nextcloud-api 11.5.1 IntelliJ Ultimate IntelliJ IDEA 2021.2.1 (Ultimate Edition) Build #IU-212.5080.55, built on August 24, 2021 Java 11 Official and latest NextCloud Docker ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KlausAlberts |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/a-schild/nextcloud-java-api git https://github.com/a-schild/nextcloud-java-api.git |
| octolytics-dimension-user_id | 1441009 |
| octolytics-dimension-user_login | a-schild |
| octolytics-dimension-repository_id | 86676911 |
| octolytics-dimension-repository_nwo | a-schild/nextcloud-java-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 86676911 |
| octolytics-dimension-repository_network_root_nwo | a-schild/nextcloud-java-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width