Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Unable to export form pulled from directory if title has "illegal characters" #869

Open
gt-novelt opened this issue Jun 29, 2020 · 1 comment

Comments

@gt-novelt
Copy link

gt-novelt commented Jun 29, 2020

Software versions

Briefcase v1.17.4,
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)

Problem description

The export hangs forever when trying to export a form pulled from "Collect Directory" when form has "illegal characters".

Steps to reproduce the problem

Pull from a "Collect Directory" of a form that has illegal characters (for instance hyphens) as title and try to export it.

Expected behavior

Export succeed

Other information

I think this issue is caused by PR #803.

When pulling from directory, illegal characters of the form name are replace by '_'.

title = StringUtils.stripIllegalChars(formTitle);

But then when exporting, since JavaRosa is not used, those are not replaced. This leads to the form not being found on fetch:

FormMetadata formMetadata = formMetadataPort.fetch(key).orElseThrow(BriefcaseException::new);

image

@gt-novelt
Copy link
Author

#800 appears to be related.

I don't think it is a duplicate since I believe the fix of #800 is what is causing the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants