Bug #1466

TBX: 0.7.7, struc2Cpos argument type bug

Ajouté par Serge Heiden il y a environ 10 ans. Mis à jour il y a plus de 6 ans.

Statut:New Début:02/09/2015
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:SearchEngine Temps passé: -
Version cible:TXM 0.X.X

Description

The CQi struc2Cpos method checks its two arguments
  • String attribute
  • int struc

When attribute is both a structure attribute (structure name) and a positional attribute (word property name) the check always produce a bug with the following error message:

Error during script execution: org.txm.searchengine.cqp.serverException.CqiClErrorWrongAttributeType
org.txm.searchengine.cqp.serverException.CqiClErrorWrongAttributeType
    at org.txm.searchengine.cqp.MemCqiClient.throwExceptionFromCqi(MemCqiClient.java:138)
    at org.txm.searchengine.cqp.MemCqiClient.struc2Cpos(MemCqiClient.java:557)
    at org.txm.searchengine.cqp.ICqiClient$struc2Cpos$1.call(Unknown Source)

Example: the corpus contains <q>...</q> structures and words have a 'q' property.

The code of the check asks for the type of the attribute argument which always return the type related to the positional attribute which always produces the mismatch.

The code of the check should verify differently the type of the attribute so that if the attribute is both a structure attribute name and a positional attribute name, the method should continue (using the structure attribute).

Historique

#1 Mis à jour par Matthieu Decorde il y a environ 10 ans

  • Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)

#2 Mis à jour par Sebastien Jacquot il y a plus de 7 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#3 Mis à jour par Matthieu Decorde il y a plus de 6 ans

  • Version cible changé de TXM 0.8.0 à TXM 0.X.X

Formats disponibles : Atom PDF