J4 Issue ?
avatar joeforjoomla
joeforjoomla
9 Mar 2019

Steps to reproduce the issue

Install an extension without the api part and usage in the XML file

Expected result

No empty folder is created under /api/components/com_xxx

Actual result

Empty folder is created under /api/components/com_xxx

Additional comments

It would be supposed that if an extension does not use the api webservices and has not a tag for that section in the XML manifest no empty folder is created under the /api path

Ping @wilsonge the author of all this one here.

avatar joeforjoomla joeforjoomla - open - 9 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Mar 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Mar 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-03-09 13:09:06
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2019
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 9 Mar 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Mar 2019

closed as no Content.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24140.

avatar joomla-cms-bot
joomla-cms-bot - comment - 9 Mar 2019
avatar joeforjoomla joeforjoomla - change - 9 Mar 2019
The description was changed
avatar joeforjoomla joeforjoomla - edited - 9 Mar 2019
avatar joeforjoomla
joeforjoomla - comment - 9 Mar 2019

Reopen it @franz-wohlkoenig i was just posting the content

avatar joeforjoomla joeforjoomla - change - 9 Mar 2019
Title
[4.0] API Webservices empty categories
[4.0] API Webservices empty folder
avatar joeforjoomla joeforjoomla - edited - 9 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2019
Status Closed New
Closed_Date 2019-03-09 13:09:06
Closed_By joomla-cms-bot
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Mar 2019
Status New Discussion
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 9 Mar 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 9 Mar 2019
avatar wilsonge
wilsonge - comment - 9 Mar 2019

This is the same behaviour in the site application right? I mean I'm not going to dispute it's odd behaviour but this is how the installer works with existing site and admin components too. https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Installer/Adapter/ComponentAdapter.php#L208-L271

avatar mbabker
mbabker - comment - 9 Mar 2019

It has earlier been deemed a requirement that components all have an administrative client (in part because of code changes in 4.0 with conventions looking for things in that area). In theory, it is possible to create an admin only component, and there would definitely be components without an API element. So, having a cleanup routine to remove the frontend and API directories if unused would be a good idea to entertain.

avatar wilsonge
wilsonge - comment - 9 Mar 2019

I agree. My point is just we should treat the 'optional' directories the same (site and api)

avatar joeforjoomla
joeforjoomla - comment - 9 Mar 2019

I agree with of you @wilsonge and @mbabker , my idea was just related to the fact that historically Joomla had 2 applications, site and admin one. Now in J4 we introduced a third application.
However supposed that only a few and specialized components will have and will use this API application in the future, i think that it would be better to parse the XML manifest and create an api directory only if really needed by the extension. Obviously the same concept should be applied even to site and admin folders.

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Mar 2019
Category External Library
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 4 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - close - 24 Mar 2020
avatar jwaisner jwaisner - change - 24 Mar 2020
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2020-03-24 13:57:20
Closed_By jwaisner
avatar joomla-cms-bot joomla-cms-bot - change - 24 Mar 2020
Closed_By jwaisner joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Mar 2020

Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/24140

avatar jwaisner
jwaisner - comment - 24 Mar 2020

This discussion has ran its course. Closing as it has been many months since anything has been added.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24140.

Add a Comment

Login with GitHub to post a comment