Skip to content

Diacritics in the people id is causing problem for saving some records. #80

@rsdoiel

Description

@rsdoiel

When we have a diacritical in the clpid there is a problem when saving the edited record. Two example clpid are García-Javier-A and
Schröder-P. Kathy quickly identified others with a similar pattern. I can update plan ASCII clpid (e.g. myself) without a problem.

The output of cold reports the following

send to dataset update object García-Javier-A                                                                       
URIError: URI malformed                                                                                             
    at decodeURI (<anonymous>)                                                                                      
    at pathIdentifier (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/utils.ts:33:12)                     
    at handleGetPeople (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/people.ts:433:17)                  
    at handlePeople (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/people.ts:401:18)                     
    at ColdReadWriteHandler (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/cold.ts:57:12)                
    at file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/cold.ts:176:14                                      
    at mapped (ext:deno_http/00_serve.ts:399:24)                                                                    
    at mapped (ext:deno_http/00_serve.ts:495:16)                                                                    
    at ext:deno_http/00_serve.ts:752:29                                                                             
    at eventLoopTick (ext:core/01_core.js:178:7)                                                                    
send to dataset update object García-Javier-A                                                                       
URIError: URI malformed                                                                                             
    at decodeURI (<anonymous>)                                                                                      
    at pathIdentifier (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/utils.ts:33:12)                     
    at handleGetPeople (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/people.ts:433:17)                  
    at handlePeople (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/people.ts:401:18)                     
    at ColdReadWriteHandler (file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/cold.ts:57:12)                
    at file:///Users/rsdoiel/src/github.com/caltechlibrary/cold/cold.ts:176:14                                      
    at mapped (ext:deno_http/00_serve.ts:399:24)                                                                    

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcriticalThis options is preventing use of the application or will corrupted data.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions