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

islandora-indexing-fcrepo-file-external failing for files with spaces in the filename #573

Open
seth-shaw-asu opened this issue Aug 25, 2022 · 0 comments
Labels
AirTable bug Something isn't working

Comments

@seth-shaw-asu
Copy link
Contributor

Example from the camel logs:

2022-08-25 17:31:59,525 | DEBUG | Consumer[fedora] | SendProcessor                    | 57 - org.apache.camel.camel-core - 2.20.4 | >>>> fcrepo://http://localhost:8080/fcrepo/rest?accept=application%2Fn-triples&preferInclude=&preferOmit=http%3A%2F%2Fwww.w3.org%2Fns%2Fldp%23PreferContainment Exchange[ID-ip-IP-ADDRESS-REDACTED-1661269079255-0-33179]
2022-08-25 17:31:59,525 | DEBUG | Consumer[fedora] | BlueprintPropertiesParser        | 57 - org.apache.camel.camel-core - 2.20.4 | Blueprint parsed property key: error.maxRedeliveries as value: 10
2022-08-25 17:31:59,526 | DEBUG | Consumer[fedora] | BlueprintPropertiesParser        | 57 - org.apache.camel.camel-core - 2.20.4 | Delegate property parser parsed the property key: error.maxRedeliveries as value: 10
2022-08-25 17:31:59,526 | DEBUG | Consumer[fedora] | BlueprintCamelContext            | 57 - org.apache.camel.camel-core - 2.20.4 | Resolved text: {{error.maxRedeliveries}} -> 10
2022-08-25 17:31:59,526 | DEBUG | Consumer[fedora] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Failed delivery for (MessageId: ID:ip-IP-ADDRESS-REDACTED-46301-1661267075546-6:1:1:1:33401 on ExchangeId: ID-ip-IP-ADDRESS-REDACTED-1661269079255-0-33179). On delivery attempt: 9 caught: java.lang.IllegalArgumentException: Illegal character in path at index 55: http://IP-ADDRESS-REDACTED:PORT/fcrepo/rest/prism/2022-08/2011 CAFR CORP.pdf
2022-08-25 17:31:59,526 | DEBUG | Consumer[fedora] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Redelivery delay calculated as 1000
2022-08-25 17:31:59,526 | DEBUG | Consumer[fedora] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Sleeping for: 1000 millis until attempting redelivery
2022-08-25 17:31:59,936 | DEBUG | o-file-external] | SendDynamicProcessor             | 57 - org.apache.camel.camel-core - 2.20.4 | >>>> http://IP-ADDRESS-REDACTED/milliner/external/191c2554-3e5c-4b33-aba1-7356336645e3?connectionClose=true Exchange[ID-ip-IP-ADDRESS-REDACTED-1661269079255-2-84283]
2022-08-25 17:31:59,936 | DEBUG | o-file-external] | HttpProducer                     | 110 - org.apache.camel.camel-http4 - 2.20.4 | Executing http POST method: http://IP-ADDRESS-REDACTED/milliner/external/191c2554-3e5c-4b33-aba1-7356336645e3
2022-08-25 17:32:00,110 | DEBUG | o-file-external] | HttpProducer                     | 110 - org.apache.camel.camel-http4 - 2.20.4 | Http responseCode: 400
2022-08-25 17:32:00,111 | DEBUG | o-file-external] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Failed delivery for (MessageId: queue_islandora-indexing-fcrepo-file-external_ID_ip-IP-ADDRESS-REDACTED-36595-1660855754218-3_12820_-1_1_1 on ExchangeId: ID-ip-IP-ADDRESS-REDACTED-1661269079255-2-84283). On delivery attempt: 3 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://IP-ADDRESS-REDACTED/milliner/external/191c2554-3e5c-4b33-aba1-7356336645e3 with statusCode: 400
2022-08-25 17:32:00,111 | DEBUG | o-file-external] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Redelivery delay calculated as 1000
2022-08-25 17:32:00,111 | DEBUG | o-file-external] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Sleeping for: 1000 millis until attempting redelivery
2022-08-25 17:32:00,526 | DEBUG | Consumer[fedora] | SendProcessor                    | 57 - org.apache.camel.camel-core - 2.20.4 | >>>> fcrepo://http://localhost:8080/fcrepo/rest?accept=application%2Fn-triples&preferInclude=&preferOmit=http%3A%2F%2Fwww.w3.org%2Fns%2Fldp%23PreferContainment Exchange[ID-ip-IP-ADDRESS-REDACTED-1661269079255-0-33179]
2022-08-25 17:32:00,526 | DEBUG | Consumer[fedora] | BlueprintPropertiesParser        | 57 - org.apache.camel.camel-core - 2.20.4 | Blueprint parsed property key: error.maxRedeliveries as value: 10
2022-08-25 17:32:00,526 | DEBUG | Consumer[fedora] | BlueprintPropertiesParser        | 57 - org.apache.camel.camel-core - 2.20.4 | Delegate property parser parsed the property key: error.maxRedeliveries as value: 10
2022-08-25 17:32:00,526 | DEBUG | Consumer[fedora] | BlueprintCamelContext            | 57 - org.apache.camel.camel-core - 2.20.4 | Resolved text: {{error.maxRedeliveries}} -> 10
2022-08-25 17:32:00,526 | DEBUG | Consumer[fedora] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Failed delivery for (MessageId: ID:ip-IP-ADDRESS-REDACTED-46301-1661267075546-6:1:1:1:33401 on ExchangeId: ID-ip-IP-ADDRESS-REDACTED-1661269079255-0-33179). On delivery attempt: 10 caught: java.lang.IllegalArgumentException: Illegal character in path at index 55: http://IP-ADDRESS-REDACTED:PORT/fcrepo/rest/prism/2022-08/2011 CAFR CORP.pdf
2022-08-25 17:32:00,527 | ERROR | Consumer[fedora] | DefaultErrorHandler              | 57 - org.apache.camel.camel-core - 2.20.4 | Failed delivery for (MessageId: ID:ip-IP-ADDRESS-REDACTED-46301-1661267075546-6:1:1:1:33401 on ExchangeId: ID-ip-IP-ADDRESS-REDACTED-1661269079255-0-33179). Exhausted after delivery attempt: 11 caught: java.lang.IllegalArgumentException: Illegal character in path at index 55: http://IP-ADDRESS-REDACTED:PORT/fcrepo/rest/prism/2022-08/2011 CAFR CORP.pdf. Processed by failure processor: FatalFallbackErrorHandler[Channel[Log(FcrepoTriplestoreUpdater)[Index Routing Error: ${routeId}]]]

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[FcrepoTriplestoreR] [FcrepoTriplestoreR] [activemq://topic:fedora                                                       ] [     10007]
[FcrepoTriplestoreR] [process1          ] [Processor@0x7f1c4b07                                                          ] [         0]
[FcrepoTriplestoreR] [choice1           ] [when[{(header{header(CamelFcrepoEventType)} contains http://fedora.info/defini] [         0]
[FcrepoTriplestoreR] [to2               ] [direct:index.triplestore                                                      ] [         0]
[FcrepoTriplestoreI] [filter1           ] [filter[{not (in ([(header{header(CamelFcrepoUri)} startsWith constant{http://l] [         0]
[FcrepoTriplestoreI] [removeHeaders1    ] [removeHeaders[CamelHttp*]                                                     ] [         0]
[FcrepoTriplestoreI] [choice2           ] [when[simple{Simple: {{indexing.predicate}} != 'true'}]choice[]                ] [         0]
[FcrepoTriplestoreI] [to4               ] [direct:update.triplestore                                                     ] [         0]
[FcrepoTriplestoreU] [setHeader1        ] [setHeader[CamelFcrepoNamedGraph]                                              ] [         0]
[FcrepoTriplestoreU] [to9               ] [fcrepo:{{fcrepo.baseUrl}}?accept=application/n-triples&preferOmit={{prefer.omi] [     10006]
[FcrepoTriplestoreU] [log1              ] [log                                                                           ] [         0]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
java.lang.IllegalArgumentException: Illegal character in path at index 55: http://IP-ADDRESS-REDACTED:PORT/fcrepo/rest/prism/2022-08/2011 CAFR CORP.pdf
        at java.net.URI.create(URI.java:852)[:1.8.0_342]
        at org.fcrepo.camel.FcrepoProducer.getMetadataUri(FcrepoProducer.java:252)[105:org.fcrepo.camel.fcrepo-camel:5.0.0]
        at org.fcrepo.camel.FcrepoProducer.getUri(FcrepoProducer.java:226)[105:org.fcrepo.camel.fcrepo-camel:5.0.0]
        at org.fcrepo.camel.FcrepoProducer.doRequest(FcrepoProducer.java:195)[105:org.fcrepo.camel.fcrepo-camel:5.0.0]
        at org.fcrepo.camel.FcrepoProducer.process(FcrepoProducer.java:157)[105:org.fcrepo.camel.fcrepo-camel:5.0.0]
        at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[57:org.apache.camel.camel-core:2.20.4]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)[57:org.apache.camel.camel-core:2.20.4]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:76)[57:org.apache.camel.camel-core:2.20.4]
...trimmed...
Caused by: java.net.URISyntaxException: Illegal character in path at index 55: http://IP-ADDRESS-REDACTED:PORT/fcrepo/rest/prism/2022-08/2011 CAFR CORP.pdf
        at java.net.URI$Parser.fail(URI.java:2847)[:1.8.0_342]
        at java.net.URI$Parser.checkChars(URI.java:3020)[:1.8.0_342]
        at java.net.URI$Parser.parseHierarchical(URI.java:3104)[:1.8.0_342]
        at java.net.URI$Parser.parse(URI.java:3052)[:1.8.0_342]
        at java.net.URI.<init>(URI.java:588)[:1.8.0_342]
        at java.net.URI.create(URI.java:850)[:1.8.0_342]
        ... 53 more
@seth-shaw-asu seth-shaw-asu added the bug Something isn't working label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AirTable bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants