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

Rule MANIFEST - Extension type 'library' is not accepted by JED? #136

Closed
anibalsanchez opened this issue Jun 26, 2021 · 11 comments · Fixed by #137 or #162
Closed

Rule MANIFEST - Extension type 'library' is not accepted by JED? #136

anibalsanchez opened this issue Jun 26, 2021 · 11 comments · Fixed by #137 or #162
Assignees

Comments

@anibalsanchez
Copy link
Contributor

Hi,

Testing an extension, I found this false positive error.

Libraries are accepted on JED. It is a valid extension type.

CC @dryabov

@dryabov
Copy link
Collaborator

dryabov commented Jun 26, 2021

@anibalsanchez Just to be sure, what about others: file, language, template? I guess language and template are not accepted, but I'm not sure about file.

@anibalsanchez
Copy link
Contributor Author

language and template are not accepted as standalone extensions.

In the extension where I detected the issue, the library is a part of a package. So, it is a completely accepted usage:

Rule MANIFEST - XML Manifests
1 Errors - Click to View Details
#001 /packages/lib_noboss/noboss.xml
Extension type 'library' is not accepted by JED

@dryabov
Copy link
Collaborator

dryabov commented Jun 26, 2021

I'm going to move this check to the XMLINFO ruleset, because it should be applied to the main manifest file only. But it requires PR #120 to be merged (as it introduces $isTopLevel parameter to distinguish main and dependent manifests).

@Llewellynvdm Could you try to merge PR #120?

@dryabov
Copy link
Collaborator

dryabov commented Jun 27, 2021

Résumé: PR #137 drops this check from XMLMANIFEST rules, and PR #120 inserts it to XMLINFO rules.

@Llewellynvdm Llewellynvdm linked a pull request Jun 29, 2021 that will close this issue
@ohrionmartin
Copy link

ohrionmartin commented Jul 10, 2021

I tested this today on an extension with external libraries and it gives this error:
Screenshot from 2021-07-10 14-41-16

@dryabov
Copy link
Collaborator

dryabov commented Jul 10, 2021

JED "officially" supports components, modules, and plugins only (they are the only options you have at the submission page). The TCPDF has type=library in the manifest, but submitted as an component (just because there is no other way). I was sure it's the only library on JED, but then found another one on https://extensions.joomla.org/category/core-enhancements/libraries/.

IMHO, the correct way would be to add library type to the extension types on JED (see https://github.com/joomla/com_jed4/blob/main/public_html/administrator/components/com_jed/forms/extension.xml#L68-L77), and modify TCPDF entry properly.

PS. @Llewellynvdm @anibalsanchez I've just found above-mentioned extension.xml file contains "component" and "module" values, but https://github.com/joomla/com_jed4/blob/main/public_html/administrator/components/com_jed/forms/filter_extensions.xml#L63-L75 contains "com" and "mod" instead. Most likely it is related to migration from JED3 to JED4 and not a problem actually, but to be sure check it.

@Llewellynvdm
Copy link
Collaborator

I was sure it's the only library on JED

Wow how surprised I am that I listed this like five or more years ago... I wonder if libraries was allowed back then... can't remember that far back. I have been updating that library here https://github.com/vdm-io/tcpdf but need to update it on the JED too.... anyway only today realized this, thanks @dryabov for pointing this issue out. Probably have to remove it then... will mention it to the JED team.

@anibalsanchez
Copy link
Contributor Author

Please, check the terms of service for the definitive guide on these matters:

https://extensions.joomla.org/community/terms-of-service/

d. The following will not be listed:
i. Extension-specific listings for extensions not listed in the JED
ii. Translations
iii. Templates
iv. Anything that doesn’t use the Joomla installer (excluding extension specific extensions)

@Llewellynvdm
Copy link
Collaborator

@dryabov have you corrected this issue?

@dryabov
Copy link
Collaborator

dryabov commented Sep 4, 2021

Yes, XMLInfo ruleset display an error message for library-type extensions.

@Llewellynvdm
Copy link
Collaborator

This means you have not fixed the issue, as @anibalsanchez has stated... the:
image
From the https://extensions.joomla.org/community/terms-of-service/ page, means library-type extensions can be listed, like the one I listed, since library type extensions that use the Joomla installer can be listed.

Llewellynvdm added a commit to Llewellynvdm/jedchecker that referenced this issue Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants