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

Issue with Hurricane form? #358

Closed
georges opened this issue Jul 26, 2022 · 2 comments · Fixed by #443
Closed

Issue with Hurricane form? #358

georges opened this issue Jul 26, 2022 · 2 comments · Fixed by #443
Assignees
Milestone

Comments

@georges
Copy link

georges commented Jul 26, 2022

There seems to be a problem with the Hurricane form not opening back up once attached.

STR

  1. pat http
  2. Action -> Compose
  3. Template -> WEATHER Forms -> Hurricane Report
  4. Fill out some info and press submit
  5. Go to your sent folder
  6. Open message
  7. Click on Hurricane Report Initial button

Result:

  • A browser window opens and says: "open: no such filed or directory"

Expected result:

  • Form should show up in browser again

Looking at the saved message on the file system, it does contain the form

Possible that the form name having white spaces is messing things up.

@richcannings
Copy link
Contributor

I reproduced the error and can take a look at the code.

When the URL parameter is rendertohtml=true, the error open: no such filed or directory is displayed.

When the URL parameter is rendertohtml=false, the correct XML file is displayed.

All the other forms I tried work as intended.

@richcannings
Copy link
Contributor

richcannings commented Dec 22, 2022

Stopping my debugging for the day and noting the issue here so I don't forget:

In the Standard_Forms path, both MAPPING-GIS FORMS and WEATHER Forms contain a file named Hurricane Report.txt. forms#findFormFromURI returns paths with first path matching the text file.

When forms#RenderForm calls forms#findFormFromURI, forms#findFormFromURI returns a form containing the first path with Hurricane Report.txt in it. In this case, it is incorrectly returning MAPPING-GIS FORMS/..., and the form#TextFileURI, form#InitialURI, and form#ViewerURI are incorrect. In this case it should be returning paths with WEATHER Form/...

Thus, we/I need to figure out how to ensure we return correct path when there are duplicate file names in different paths.

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

Successfully merging a pull request may close this issue.

3 participants