You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Turcsanyi (Jira)" <ji...@apache.org> on 2025/03/18 07:20:00 UTC
[jira] [Updated] (NIFI-14376) ListGoogleDrive fails to list Shared Drive subfolder
[ https://issues.apache.org/jira/browse/NIFI-14376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Turcsanyi updated NIFI-14376:
-----------------------------------
Affects Version/s: 2.3.0
> ListGoogleDrive fails to list Shared Drive subfolder
> ----------------------------------------------------
>
> Key: NIFI-14376
> URL: https://issues.apache.org/jira/browse/NIFI-14376
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Peter Turcsanyi
> Assignee: Peter Turcsanyi
> Priority: Major
>
> ListGoogleDrive fails when Folder ID property points to a subfolder in a Shared Drive.
> The processor can list the subfolders recursively from Shared Drive root. It fails when the starting point is a subfolder.
> The issue was introduced in NIFI-14303 when the processor tries to retrieve the folder's name.
> {code:java}
> 2025-03-17 22:13:47,582 ERROR [Timer-Driven Process Thread-1] o.a.n.p.gcp.drive.ListGoogleDrive ListGoogleDrive[id=338ab6d3-1d9c-315e-5ff7-13931efddbea] Failed to perform listing on remote host due to 404 Not Found
> GET https://www.googleapis.com/drive/v3/drives/19qa-i4rf5cdsJyUqDeHrHJhAPTquPieP?fields=name
> {
> "code": 404,
> "errors": [
> {
> "domain": "global",
> "location": "driveId",
> "locationType": "parameter",
> "message": "Shared drive not found: 19qa-i4rf5cdsJyUqDeHrHJhAPTquPieP",
> "reason": "notFound"
> }
> ],
> "message": "Shared drive not found: 19qa-i4rf5cdsJyUqDeHrHJhAPTquPieP"
> }
> com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
> GET https://www.googleapis.com/drive/v3/drives/19qa-i4rf5cdsJyUqDeHrHJhAPTquPieP?fields=name
> {
> "code": 404,
> "errors": [
> {
> "domain": "global",
> "location": "driveId",
> "locationType": "parameter",
> "message": "Shared drive not found: 19qa-i4rf5cdsJyUqDeHrHJhAPTquPieP",
> "reason": "notFound"
> }
> ],
> "message": "Shared drive not found: 19qa-i4rf5cdsJyUqDeHrHJhAPTquPieP"
> }
> at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)
> at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:118)
> at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:37)
> at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$3.interceptResponse(AbstractGoogleClientRequest.java:479)
> at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1111)
> at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:565)
> at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:506)
> at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:616)
> at org.apache.nifi.processors.gcp.drive.ListGoogleDrive.getFolderName(ListGoogleDrive.java:313)
> at org.apache.nifi.processors.gcp.drive.ListGoogleDrive.performListing(ListGoogleDrive.java:286)
> at org.apache.nifi.processor.util.list.AbstractListProcessor.listByNoTracking(AbstractListProcessor.java:460)
> at org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:426)
> at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
> at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1272)
> at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:244)
> at org.apache.nifi.controller.scheduling.AbstractTimeBasedSchedulingAgent.lambda$doScheduleOnce$0(AbstractTimeBasedSchedulingAgent.java:59)
> at org.apache.nifi.engine.FlowEngine.lambda$wrap$1(FlowEngine.java:105)
> at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
> at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
> at java.base/java.lang.Thread.run(Thread.java:1583)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)