Closed tochi-y closed 4 years ago
ObjectIoTest.marshal_Acl is currently run with no configuration of ''PathBasedCellUrl" and "FQDN". So their values are default value if personium-unit-config-properties is not placed. In the default values case, this line assigned https:/
.
So the results are different by PathBasedCellUrl value.
PathBasedCellUrl true
-> https://cell.unit.example/__role/__/
PathBasedCellUrl false -> personium-localunit://cell.unit.example/__role/__/
Problem
Unit test case ObjectIoTest.marshal_Acl failed when PathBasedCellUrl is enabled.
If PathBasedCellUrl is disabled, the test case succeeds.
Cause
When ACL.setBase method is called, the base value to set is variant depending on the PathBasedCellUrl value.
https://cell.unit.example/__role/__/
personium-localunit://cell.unit.example/__role/__/
https://github.com/personium/personium-core/blob/56882d7b16c2a7a43126e22df2b3c0b671592523/src/test/java/io/personium/core/model/jaxb/ObjectIoTest.java#L84 https://github.com/personium/personium-core/blob/56882d7b16c2a7a43126e22df2b3c0b671592523/src/main/java/io/personium/core/model/jaxb/Acl.java#L97 https://github.com/personium/personium-core/blob/56882d7b16c2a7a43126e22df2b3c0b671592523/src/main/java/io/personium/core/utils/UriUtils.java#L189
And the default PathBasedCellUrl value is false. https://github.com/personium/personium-core/blob/56882d7b16c2a7a43126e22df2b3c0b671592523/src/main/resources/personium-unit-config-default.properties#L39