<feed xmlns='http://www.w3.org/2005/Atom'>
<title>moa-zs/src/main/java/at/gv/egiz/moazs/util, branch master</title>
<subtitle>Middleware that allows a sender application to send delivery requests to delivery services</subtitle>
<id>https://git.egiz.gv.at/moa-zs/atom?h=master</id>
<link rel='self' href='https://git.egiz.gv.at/moa-zs/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/'/>
<updated>2020-03-03T07:53:43+00:00</updated>
<entry>
<title>Update Copyright to 2020</title>
<updated>2020-03-03T07:53:43+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2020-03-03T07:53:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=260200a55c07a9a5a8beab70dcf1980e522c438b'/>
<id>urn:sha1:260200a55c07a9a5a8beab70dcf1980e522c438b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove JAXB Class Not Found Fix</title>
<updated>2019-10-30T15:04:03+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-10-30T14:54:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=fca03ea334be5eb34e919a5cc7ca8bc25d79a564'/>
<id>urn:sha1:fca03ea334be5eb34e919a5cc7ca8bc25d79a564</id>
<content type='text'>
- Problem: Apparently I used the wrong executor when supplying the
  backend tasks via CompletableFuture.supplyAsync(). This method
  relies on ForkJoinPool.commonPool(), and threads in this pool are
  not configured correctly?
- Solution: Use spring-boots auto-configured TaskExecutor.
- More Information on this issue can be found here:
  https://issues.apache.org/jira/browse/CXF-8100#
</content>
</entry>
<entry>
<title>Resolve Sonarqube Findings</title>
<updated>2019-10-07T07:37:38+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-10-07T07:37:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=4070779c3a035b7a6bc0bdcbeebe69df42abe94b'/>
<id>urn:sha1:4070779c3a035b7a6bc0bdcbeebe69df42abe94b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add @author Tag Where It Was Missing</title>
<updated>2019-10-04T09:20:20+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-10-04T09:17:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=0727f68a2b899540fa951bfb22f9168bb1604b89'/>
<id>urn:sha1:0727f68a2b899540fa951bfb22f9168bb1604b89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add Licenses, NOTICE, and License Header</title>
<updated>2019-10-04T08:28:56+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-10-04T08:28:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=525c763bb99bc986543d0f1729228318d7c0ebcb'/>
<id>urn:sha1:525c763bb99bc986543d0f1729228318d7c0ebcb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixes and Refactoring</title>
<updated>2019-08-28T11:36:35+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-08-28T11:34:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=70e8a1b80fea9d61c46dbd55aa1b461a8bb3a0f7'/>
<id>urn:sha1:70e8a1b80fea9d61c46dbd55aa1b461a8bb3a0f7</id>
<content type='text'>
- JAXB Hack: Handle InterruptionException properly (as in [1], "Dont
  swallow Interrupts")
- Mzs2MsgConverter: Rename convert(Person) to
  convertReceiverPerson(Person) to emphasize that this method can only
  be used to convert Receiver Persons (Reminder: Receiver Persons are
  PhysicalPersons / CorporateBodies. SenderPersons can also be
  Authorities)
- Mzs2MsgConverter: Remove assertion because not needed anymore.
- Refactor: Move mzs:DeliveryRequest validation out ouf augmenter and
  into service.
- Refactor: Create a single entry point for validating a
  mzs:DeliveryRequest.
- Remove unused imports.
- Fix log messages.

[1] https://www.ibm.com/developerworks/java/library/j-jtp05236/index.html?ca=drs-#2.1
</content>
</entry>
<entry>
<title>Fix: JAXB + Java &gt;= 9 Class Loader Bug &amp; Ensure Tomcat Deployment</title>
<updated>2019-08-23T13:17:14+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-08-22T08:05:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=e6e0950a506d814415d8036e68e54d2034b6d3e7'/>
<id>urn:sha1:e6e0950a506d814415d8036e68e54d2034b6d3e7</id>
<content type='text'>
- Problem: Jaxb + JAVA &gt;= 9 Runtime + Tomcat = ClassNotFoundException:
  ContextFactory.

  Reason: Apparently, jaxb uses the "wrong" classloader (the system
  classloader via the thread classloader) and this classloader does
  not know about jaxb api's and implementations at runtime since
  oracle decided to move jaxb* out of JRE.

  Solution: create a new thread, override the thread's "thread"
  classloader with the "class" classloader and do all jaxb
  interactions in that thread. See:
  https://sjhannah.com/blog/2018/11/21/jaxb-hell-on-jdk-9/

- Move "run jaxb interactions in own thread with class class loader"
  code into own component (JaxbClassNotFoundFix,
  runInTheadWithClassClassLoader) and wrap ClientFactory and
  Marshaller code into the "runInTheadWithClassClassLoader".

- Ensure that app can be deployed in a Tomcat container (by following
  this guide: https://www.baeldung.com/spring-boot-war-tomcat-deploy)
</content>
</entry>
<entry>
<title>Moved Config Files From main/resources/ To test/resources/config</title>
<updated>2019-08-23T12:57:28+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-08-21T13:27:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=763724b04d25d07fce5559c1d7a6c12badab937c'/>
<id>urn:sha1:763724b04d25d07fce5559c1d7a6c12badab937c</id>
<content type='text'>
- Reason: Integration tests need configuration, but config files
  should not be packaged into the final artifact.
- Update paths.
</content>
</entry>
<entry>
<title>Test Flow of DeliveryRequest from "End-To-End" &amp; Fix Bugs</title>
<updated>2019-07-22T11:02:19+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-07-22T11:02:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=cb9a76eaafd37f921006822bcfe043655288bc63'/>
<id>urn:sha1:cb9a76eaafd37f921006822bcfe043655288bc63</id>
<content type='text'>
Schema Changes:
- Remove mzs:DeliveryRequest/TnvzMetaData because all metadata fields
  can be collected from DeliveryRequest and redundancy is not needed.

Fixes and Refactoring in preprocess:
- MzsDeliveryRequestValidator: Instead of returning false, throw an
  exception when a condition is not met, and explain which condition
  is not met / why it is not met in the exception's message.
- Integrate interface change in ConfigProfileGenerator and
  DeliveryRequestAugmenter.
- Rewrite and simplify DeliveryRequestAugmenter's augmentation.
- ConfigUtil Fixes: Ensure that we do not override the wrong
  parameters while merging. This error appeared in tnvz / msg client,
  connection / receive timeout, key / trust store, and lax hostname
  verification / trust all.

Fix Bugs in Interceptor / SoapUtils:
- Problem: DOM access and information extraction was implemented
  somewhat sloppy.
- SolutioN: Change DOM access interface to access DOM more
  efficiently. Add boundary checks and handle edge cases while
  extracting information from SOAP Messages.
- Test those changes properly.

Testing:
- Implement Delivery Request Flow in ITEndToEndTest.
- Start application on random port instead of fixed port when running
  integration tests.
- Add assertions to tests in ITMzsServiceTest suite.

Others Bug Fixes:
- ServicesConfig: Ensure that mzs service and msg service run on
  different endpoint addresses (/msg and /mzs).
- DeliveryRequestBackend: Throw exception when binary message is
  missing. Don't wrap the exception.
- SaveResponseToFileSink: Wrap Response in JAXB Element (otherwise,
  marshaller does not recognize it)
</content>
</entry>
<entry>
<title>Minor Fixes And Refactoring</title>
<updated>2019-07-09T10:56:54+00:00</updated>
<author>
<name>Christof Rabensteiner</name>
<email>christof.rabensteiner@iaik.tugraz.at</email>
</author>
<published>2019-07-09T10:56:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.egiz.gv.at/moa-zs/commit/?id=65163646205b6e05139485fe957bceabe531f447'/>
<id>urn:sha1:65163646205b6e05139485fe957bceabe531f447</id>
<content type='text'>
- Fix typo in SafeResponseToFileSink.
- MoaZSException: Simplify constructor by replacing lots of arguments
  with the builder instance.
- Fix minor codesmells (unused imports, superfluous braces).
</content>
</entry>
</feed>
