Expand my Community achievements bar.

SOLVED

Code Quality Issue (@ProviderType should not be extended by custom code)

Avatar

Level 1

Hi All,

 

We are getting Critical code quality Issues in Code quality Pipleline.

 

The product class javax.json.spi.JsonProvider annotated with @ProviderType should not be extended by custom code. Detected in org.apache.johnzon.core.JsonProviderImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.commons.johnzon-1.2.14.jar.(CQRules:CQBP-84).

 

I have added the below dependency in all pom.xml.

 

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.johnzon</artifactId>
<target>/apps/<project-name>-vendor-packages/application/install</target>
</dependency>

 

 

The product interface org.apache.sling.caconfig.management.multiplexer.ConfigurationResourceResolvingStrategyMultiplexer annotated with @ProviderType should not be implemented by custom code. Detected in org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexerImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.caconfig.impl-1.6.0.jar.

 

 

How to fix such issues.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Yes, you can actually raise an Adobe support ticket to help you disable any code quality issues in product in the code quality pipeline. 

View solution in original post

4 Replies

Avatar

Community Advisor

Hello @AmBH ,

 

So basically the code quality is detected in the class org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexerImpl, which is contained in the JAR file org.apache.sling.caconfig.impl-1.6.0.jar within the /apps/<project-name>-vendor-packages/application/install/ directory.

 

Is the understanding correct that the issue is in the OOTB product classes only?

 

  • If yes, then you can actually raise an Adobe support ticket to help you disable any code quality issues in product in the code quality pipeline. 
  • If no, could you please share more specific details of the issue?

 

Thanks,

Tanika

Avatar

Level 1

Hi @Tanika02 ,

 

Issue is in out of box JAR classes.

.Same with below class also.

 

The product class javax.json.spi.JsonProvider annotated with @ProviderType should not be extended by custom code. Detected in org.apache.johnzon.core.JsonProviderImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.commons.johnzon-1.2.14.jar.(CQRules:CQBP-84).

 

 

Are you recommending to raise adobe ticket to manually get that closed.

 

Thanks

 

 

Avatar

Correct answer by
Community Advisor

Yes, you can actually raise an Adobe support ticket to help you disable any code quality issues in product in the code quality pipeline. 

Avatar

Community Advisor

 

@AmBH  can you tell us which version of ACS commons that you are using ?

The same issue is discussed at below form 

https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2604

 

Try using the latest ACS