Skip to content

Commit

Permalink
Corrige type identifiant Domibus
Browse files Browse the repository at this point in the history
Jusqu'ici, on utilise comme typeId la valeur
`urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator`…
considéré comme invalide par les validateurs fournis par la Commission
Européenne.

Ce commit fait apparaître comme typeId la valeur
acceptée `urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots`.
  • Loading branch information
egaillot committed Nov 25, 2024
1 parent 570ac52 commit 904b2d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion exemples/configuration_PMode_Domibus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<parties>
<partyIdTypes>
<partyIdType name="partyTypeUrn" value="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator"/>
<partyIdType name="partyTypeUrn" value="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots"/>
</partyIdTypes>
<party name="blue_gw" endpoint="http://localhost:8080/domibus/services/msh" allowChunking="false">
<identifier partyId="blue_gw" partyIdType="partyTypeUrn"/>
Expand Down
6 changes: 4 additions & 2 deletions src/routes/routesEbms.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ const routesEbms = (config) => {
const routes = express.Router();

routes.get('/entetes/requeteJustificatif', (requete, reponse) => {
const { idDestinataire, typeIdentifiant } = requete.query;
const destinataire = new PointAcces(idDestinataire, typeIdentifiant);
const destinataire = new PointAcces(
process.env.IDENTIFIANT_EXPEDITEUR_DOMIBUS,
process.env.TYPE_IDENTIFIANT_EXPEDITEUR_DOMIBUS,
);
const idConversation = adaptateurUUID.genereUUID();
const suffixe = process.env.SUFFIXE_IDENTIFIANTS_DOMIBUS;
const idPayload = `cid:${adaptateurUUID.genereUUID()}@${suffixe}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class ConstructeurEnveloppeSOAPAvecPieceJointe {
</eb:MessageInfo>
<eb:PartyInfo>
<eb:From>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator">AP_SI_01</eb:PartyId>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots">AP_SI_01</eb:PartyId>
<eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator">AP_FR_01</eb:PartyId>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots">AP_FR_01</eb:PartyId>
<eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
</eb:To>
</eb:PartyInfo>
Expand Down
4 changes: 2 additions & 2 deletions test/constructeurs/constructeurEnveloppeSOAPRequete.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ class ConstructeurEnveloppeSOAPRequete {
</eb:MessageInfo>
<eb:PartyInfo>
<eb:From>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator">AP_SI_01</eb:PartyId>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots">AP_SI_01</eb:PartyId>
<eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator">AP_FR_01</eb:PartyId>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots">AP_FR_01</eb:PartyId>
<eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
</eb:To>
</eb:PartyInfo>
Expand Down
2 changes: 1 addition & 1 deletion test/depots/depotPointsAcces.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ConstructeurPointAcces {
constructor() {
this.nom = adaptateurUUID.genereUUID();
this.id = this.nom;
this.typeIdentifiant = 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots-simulator';
this.typeIdentifiant = 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:oots';
}

avecId(id) {
Expand Down

0 comments on commit 904b2d2

Please sign in to comment.