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

Ere 148 #14

Merged
merged 7 commits into from
Jun 9, 2021
Merged

Ere 148 #14

merged 7 commits into from
Jun 9, 2021

Conversation

xbarrelet
Copy link
Contributor

@xbarrelet xbarrelet commented Jun 9, 2021

As requested in the comments of the Jira task the .env file as been removed and env variables are set up in the workflow configuration files.
I did some tests to use Windows as the build OS in the workflow but it causes problems with the DocumentService when it creates some xml files in the temporary directory (like in line 195).

@cartel1
Copy link
Contributor

cartel1 commented Jun 9, 2021

@barelyThinkingBagOfWater Thanks. It would be good to have this running on Windows which is the target environment for the upcoming release. What is the specific problem being experienced with the DocumentService? @OmarMalass is using Windows. I've asked him to check if he is experiencing problems as well assuming it's not an OS version issue.

@xbarrelet
Copy link
Contributor Author

You can find the stacktraces here : https://github.com/ere-health/ere-ps-app/runs/2781881805?check_suite_focus=true
Here is the one :
2021-06-09 08:45:53,009 SEVERE [hea.ere.ps.ser.pdf.DocumentService] (main) Could not generate ERezept PDF: net.sf.saxon.trans.XPathException: org.xml.sax.SAXParseException; systemId: file:/C:/Users/RUNNER~1/AppData/Local/Temp/bundle-1845152425606715324.xml; lineNumber: 5; columnNumber: 2134; Invalid byte 1 of 1-byte UTF-8 sequence.

Now I'm not familiar with this service yet and I haven't really dug into this error but from what I understand there is a problem with the writing of these temporary files. It might be specific to this windows vm so still works on Omar's computer.
I'll start working tomorrow on the task ERE-300/301 that I think are linked to this part of the code. I'll take a deeper look at this problem then.

@OmarMalass
Copy link
Contributor

OmarMalass commented Jun 9, 2021

I got the same error on Windows.

@cartel1
Copy link
Contributor

cartel1 commented Jun 9, 2021

@barelyThinkingBagOfWater @OmarMalass Thanks for the confirmation. We need to look at this issue further as this initial release is primarily targeted for Windows.

@cartel1 cartel1 merged commit 51c719c into main Jun 9, 2021
@xbarrelet
Copy link
Contributor Author

xbarrelet commented Jun 10, 2021

I'm not sure where to post this but the relevant people are following these comments so : the bug is fixed. You just have to force the use of UTF-8 when saving the temporary file like this:
Files.write(tmpFile.toPath(), serialized.getBytes(StandardCharsets.UTF_8));
Tested on the Windows build OS with Github Actions.
PS: It's only fixed on my local branch ERE-307 so far.

@ManuelB
Copy link
Contributor

ManuelB commented Jun 10, 2021

@barelyThinkingBagOfWater good job!

@ManuelB ManuelB deleted the ERE-148 branch June 12, 2021 12:13
xbarrelet pushed a commit that referenced this pull request Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants