[ABD] Extension .yml check

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

[ABD] Extension .yml check

Post by david63 »

phpbb3-extension-extservicescheck

Description:
Checks the syntax of the services.yml file in extensions prior to phpBB 3.3.

Image Image

Note:
This extension will only check that the syntax of the services.yml file is compatible with phpBB 3.3 - it does no other checks and does not make any guarantees that any extension will be compatible with phpBB 3.3 in any other respect.

Features:
  • Lists the status of all extensions.
  • Shows a comparison of the "original" file and the "re-formatted" file.
  • Highlights the difference between the two files
  • Option to disable an extension that has errors and/or queries
Languages:
en

Status:
2.1.0-RC8

Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to [board root]/ext/david63/extservicescheck and enable it in the ACP
GitHub Repository:

Extension Download:

Useage:
ACP > Customise > Extension management > Extension services check
Last edited by david63 on Wed Oct 12, 2022 7:20 am, edited 11 times in total.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][RC] Extension Services Check

Post by david63 »

The reason for this extension is that in phpBB 3.3 there is a change in Symfony that requires the services.yml file to have a particular syntax. There are some, probably quite old, extensions that may not conform to this syntax and the extension will not work - and may possibly break your board.

By running this extension you will be able to check your extensions and take appropriate action prior to upgrading to phpBB 3.3 (when it is released)
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.2][RC] Extension Services Check

Post by HiFiKabin »

Very clever, and most helpful. Many thanks David
User avatar
pierredu
Registered User
Posts: 1272
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Extension Services Check

Post by pierredu »

Do you check the 'pattern' keyword?
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][RC] Extension Services Check

Post by david63 »

pierredu wrote: Sun Nov 03, 2019 2:38 pm Do you check the 'pattern' keyword?
Not sure what you mean by "keyword" but I am checking that the @ and % arguments are not without a leading character.

I am not claiming this to be infallible but more as a guide
Last edited by david63 on Sun Nov 03, 2019 3:08 pm, edited 1 time in total.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm

Re: [3.2][RC] Extension Services Check

Post by </Solidjeuh> »

david63 wrote: Sun Nov 03, 2019 3:01 pm
pierredu wrote: Sun Nov 03, 2019 2:38 pm Do you check the 'pattern' keyword?
Not sure what you mean by "keyword" but I am checking that if an argument starts with either @ or % then it also has a quote
I guess this:
https://area51.phpbb.com/phpBB/viewtopi ... 30#p332791
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2437
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: [3.2][RC] Extension Services Check

Post by P_I »

Thanks David. This will be very helpful going forward.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][RC] Extension Services Check

Post by nou nou »

Very helpful indeed! Thank you very much!
User avatar
pierredu
Registered User
Posts: 1272
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [3.2][RC] Extension Services Check

Post by pierredu »

</Solidjeuh> wrote: Sun Nov 03, 2019 3:07 pm
david63 wrote: Sun Nov 03, 2019 3:01 pm
pierredu wrote: Sun Nov 03, 2019 2:38 pm Do you check the 'pattern' keyword?
Not sure what you mean by "keyword" but I am checking that if an argument starts with either @ or % then it also has a quote
I guess this:
https://area51.phpbb.com/phpBB/viewtopi ... 30#p332791
Exactly.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][RC] Extension Services Check

Post by david63 »

Updated to RC2

Added check for routing.yml
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands

Re: [3.2][RC] Extension Services Check

Post by dmzx »

david63 wrote: Sun Nov 03, 2019 10:20 pm Updated to RC2

Added check for routing.yml
Maybe change the text in ACP that routing.yml is also checked.


-------------
Extension Services File Syntax Check
This extension will check the syntax of the services.yml file in all of the enabled extensions on this board for compatibility with phpBB 3.3.

It does NOT guarantee that the extension is compatible in any other way with phpBB 3.3 nor does it guarantee that there are no other issues with the services.yml file.


------------
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [3.2][RC] Extension Services Check

Post by kasimi »

You may also want to check services & parameters of setter injections: https://github.com/phpbb/phpbb/blob/rel ... es.yml#L41
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][RC] Extension Services Check

Post by david63 »

kasimi wrote: Mon Nov 04, 2019 10:49 am You may also want to check services & parameters of setter injections: https://github.com/phpbb/phpbb/blob/rel ... es.yml#L41
To save me spending the next three days digging around documentation :o what are the correct and incorrect setting? ;)

And while I am about it are there any others that come to mind?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [3.2][RC] Extension Services Check

Post by kasimi »

The same rules apply, incorrect: - [set_cache, [@cache.driver]], correct: - [set_cache, ['@cache.driver']].

And maybe you should check all .yml files in the config folder & its subfolders.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [3.2][RC] Extension Services Check

Post by david63 »

kasimi wrote: Mon Nov 04, 2019 7:04 pm The same rules apply, incorrect: - [set_cache, [@cache.driver]], correct: - [set_cache, ['@cache.driver']].
Thanks - I will check for that
kasimi wrote: Mon Nov 04, 2019 7:04 pm And maybe you should check all .yml files in the config folder
I was hoping nobody would suggest that :o
kasimi wrote: Mon Nov 04, 2019 7:04 pm & its subfolders.
Do any extensions have subfolders? I cannot recall ever seeing any
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here

Return to “Abandoned Extensions”