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

Many warnings related to deprecated usage of legacy-style HQL ordinal parameters in console when using the app #19

Closed
ilieandriuta opened this issue Oct 8, 2019 · 0 comments
Assignees
Milestone

Comments

@ilieandriuta
Copy link

STEPS TO REPRODUCE

  1. Go to Administer Wiki > Other > Antivirus
  2. Observe the console logs

EXPECTED RESULTS

The console does not display any warnings/ errors.

ACTUAL RESULTS

On each click on the Antivirus App from Administration, the logs are filled with warnings like:

2019-10-08 15:11:15,823 [http://localhost:1181/xwiki/bin/get/Antivirus/AntivirusLogLiveTableResults?outputSyntax=plain&transprefix=antivirus.log.index.&classname=Antivirus.AntivirusIncidentClass&collist=attachmentName%2CattachmentDocument%2CattachmentInfections%2CincidentDate%2CattachmentAuthor%2CincidentAction&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=1&sort=incidentDate&dir=desc] WARN c.x.x.XWiki - Deprecated usage legacy-style HQL ordinal parameters (?); use JPA-style ordinal parameters (e.g., ?1) instead. Query [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop, BaseObject as obj , DateProperty prop_incidentDate where (doc.hidden <> true or doc.hidden is null) and (tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0 and obj.name=doc.fullName and obj.className = ? and doc.fullName not in (?, ?) and obj.id=prop_incidentDate.id.id and prop_incidentDate.name = ?)] has been converted to [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop, BaseObject as obj , DateProperty prop_incidentDate where (doc.hidden <> true or doc.hidden is null) and (tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0 and obj.name=doc.fullName and obj.className = ?1 and doc.fullName not in (?2, ?3) and obj.id=prop_incidentDate.id.id and prop_incidentDate.name = ?4)] 2019-10-08 15:11:15,830 [http://localhost:1181/xwiki/bin/get/Antivirus/AntivirusLogLiveTableResults?outputSyntax=plain&transprefix=antivirus.log.index.&classname=Antivirus.AntivirusIncidentClass&collist=attachmentName%2CattachmentDocument%2CattachmentInfections%2CincidentDate%2CattachmentAuthor%2CincidentAction&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=1&sort=incidentDate&dir=desc] WARN c.x.x.XWiki - Deprecated usage legacy-style HQL ordinal parameters (?); use JPA-style ordinal parameters (e.g., ?1) instead. Query [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop, BaseObject as obj where (doc.hidden <> true or doc.hidden is null) and (tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0 and obj.name=doc.fullName and obj.className = ? and doc.fullName not in (?, ?))] has been converted to [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop, BaseObject as obj where (doc.hidden <> true or doc.hidden is null) and (tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0 and obj.name=doc.fullName and obj.className = ?1 and doc.fullName not in (?2, ?3))] 2019-10-08 15:11:15,837 [http://localhost:1181/xwiki/bin/get/Antivirus/AntivirusLogLiveTableResults?outputSyntax=plain&transprefix=antivirus.log.index.&classname=Antivirus.AntivirusIncidentClass&collist=attachmentName%2CattachmentDocument%2CattachmentInfections%2CincidentDate%2CattachmentAuthor%2CincidentAction&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=1&sort=incidentDate&dir=desc] WARN c.x.x.XWiki - Deprecated usage legacy-style HQL ordinal parameters (?); use JPA-style ordinal parameters (e.g., ?1) instead. Query [select doc.fullName from XWikiDocument doc , BaseObject as obj , DateProperty prop_incidentDate where (doc.hidden <> true or doc.hidden is null) and ((doc.language is null or doc.language = '' or doc.language = 'en') and (obj.name=doc.fullName and obj.className = ? and doc.fullName not in (?, ?) and obj.id=prop_incidentDate.id.id and prop_incidentDate.name = ? )) order by prop_incidentDate.value desc] has been converted to [select doc.fullName from XWikiDocument doc , BaseObject as obj , DateProperty prop_incidentDate where (doc.hidden <> true or doc.hidden is null) and ((doc.language is null or doc.language = '' or doc.language = 'en') and (obj.name=doc.fullName and obj.className = ?1 and doc.fullName not in (?2, ?3) and obj.id=prop_incidentDate.id.id and prop_incidentDate.name = ?4 )) order by prop_incidentDate.value desc] 2019-10-08 15:11:15,842 [http://localhost:1181/xwiki/bin/get/Antivirus/AntivirusLogLiveTableResults?outputSyntax=plain&transprefix=antivirus.log.index.&classname=Antivirus.AntivirusIncidentClass&collist=attachmentName%2CattachmentDocument%2CattachmentInfections%2CincidentDate%2CattachmentAuthor%2CincidentAction&queryFilters=currentlanguage%2Chidden&offset=1&limit=10&reqNo=1&sort=incidentDate&dir=desc] WARN c.x.x.XWiki - Deprecated usage legacy-style HQL ordinal parameters (?); use JPA-style ordinal parameters (e.g., ?1) instead. Query [select count(doc.fullName) from XWikiDocument doc , BaseObject as obj , DateProperty prop_incidentDate where (doc.hidden <> true or doc.hidden is null) and ((doc.language is null or doc.language = '' or doc.language = 'en') and (obj.name=doc.fullName and obj.className = ? and doc.fullName not in (?, ?) and obj.id=prop_incidentDate.id.id and prop_incidentDate.name = ? )) ] has been converted to [select count(doc.fullName) from XWikiDocument doc , BaseObject as obj , DateProperty prop_incidentDate where (doc.hidden <> true or doc.hidden is null) and ((doc.language is null or doc.language = '' or doc.language = 'en') and (obj.name=doc.fullName and obj.className = ?1 and doc.fullName not in (?2, ?3) and obj.id=prop_incidentDate.id.id and prop_incidentDate.name = ?4 )) ]

This can fill up the logs quickly and take up space.

Environment: Environment: Windows 10 64bit, Chrome 77, using a local instance of XWiki 11.8.1 on HSQL (Antivirus Application v. 1.2.6)

@ilieandriuta ilieandriuta added this to the 1.3 milestone Oct 8, 2019
@ilieandriuta ilieandriuta changed the title Many warnings related to deprecated usage of legacy-style HQL ordinal parameters in console when Many warnings related to deprecated usage of legacy-style HQL ordinal parameters in console when using the app Oct 8, 2019
acotiuga added a commit that referenced this issue Sep 1, 2020
@acotiuga acotiuga self-assigned this Sep 1, 2020
@acotiuga acotiuga closed this as completed Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants