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

Changes for developers & admins for Nextcloud 26 #34692

Closed
nickvergessen opened this issue Oct 20, 2022 · 37 comments
Closed

Changes for developers & admins for Nextcloud 26 #34692

nickvergessen opened this issue Oct 20, 2022 · 37 comments
Labels

Comments

@nickvergessen
Copy link
Member

nickvergessen commented Oct 20, 2022

Continuation of #32117

Readme

📝 Please always leave a comment when editing, so subscribed developers and admins are notified.

Front-end

Backend

Removed from public namespace:

Removed from private namespace:

Deprecations

  • Planned removal of PSR-0 class loading: Nextcloud is still loading classes that follow the long deprecated and replaced PSR-0 standard. Nextcloud 26 is the last version that register a generic PSR-0 class loader. From Nextcloud 27 on apps have to either change class file names to match PSR-4 or ship their own (composer) class loader for PSR-0 files or.
    Pull request by ChristophWurst: perf(autoloader): Drop legacy class autoloader #36114

Deprecations of Events & Hooks

Behavorial changes

Changes for admins

  • PHP 7.4 is not supported anymore
  • PHP 8.2 is now supported
  • The recommended webserver configuration has changed to no longer include a default redirect to the login page
    • For Apache this change will automatically come with the .htaccess file provided by the release
    • for nginx administrators should ensure that their config is up to date with the documentation
      • The relevant lines to remove are error_page 403 /core/templates/403.php; and error_page 404 /core/templates/404.php;
  • The admin panel setup checks do now expect the X-Robots-Tag header to be set to noindex, nofollow, instead of none. While both are equivalent for Google, for other search engines, e.g. Bing, they are not. The value none hence does not prevent your Nextcloud pages from being index by and presented as Bing search results: Change X-Robots-Tag header from "none" to "noindex, nofollow" #36689
@jancborchardt
Copy link
Member

jancborchardt commented Oct 20, 2022

Added

The "app icons" background https://github.com/nextcloud/server/blob/stable25/core/img/background.png and https://github.com/nextcloud/server/blob/stable25/core/img/background.svg is not used anymore and will be removed (was only used on login page, where we now use the "clouds" background.

@szaimen
Copy link
Contributor

szaimen commented Nov 3, 2022

@miaulalala
Copy link
Contributor

miaulalala commented Nov 8, 2022

Breaking change backend:

#34893

move ICreateFromString::handleIMipMessage(string $name, string $calendarData): void; to its own Interface

Added

  • Moved ICreateFromString::handleIMipMessage(string $name, string $calendarData): void; to its own Interface IHandleImipMessage

@szaimen
Copy link
Contributor

szaimen commented Nov 8, 2022

@miaulalala can you also edit the first post?

@nickvergessen nickvergessen changed the title Critical changes for developers & admins for Nextcloud 26 Changes for developers & admins for Nextcloud 26 Nov 8, 2022
@enoch85
Copy link
Member

enoch85 commented Nov 14, 2022

When will PHP 7.4 be deprecated?

@nickvergessen
Copy link
Member Author

nickvergessen commented Nov 14, 2022

See https://help.nextcloud.com/t/on-the-roadmap-deprecation-of-php-7-4/149848 for more information

TLDR: deprecation in 26, removal might be as well or later depending on our dependencies

@nickvergessen
Copy link
Member Author

Added

Backend

  • Auto-Submitted header for emails: There now is a new method on the OCP\Mail\IMessage interface IMessage::setAutoSubmitted(). With this method you can specify that an email was an automatic email or response, to allow mail servers to better detect if an out-of-office reply should be sent, better store/filter the emails and so on. Possible values are documented in the OCP\Mail\Headers\AutoSubmitted interface.
    Pull request by bennet0496: Adding option to set Auto-Submitted email header #35876

@nickvergessen
Copy link
Member Author

@individual-it please always leave a comment, so people are notified.

Added

Backend

@nickvergessen
Copy link
Member Author

nickvergessen commented Jan 13, 2023

Backend

Deprecations

  • Planned removal of PSR-0 class loading: Nextcloud is still loading classes that follow the long deprecated and replaced PSR-0 standard. Nextcloud 26 is the last version that register a generic PSR-0 class loader. From Nextcloud 27 on apps have to either change class file names to match PSR-4 or ship their own (composer) class loader for PSR-0 files or.
    Pull request by ChristophWurst: perf(autoloader): Drop legacy class autoloader #36114

@come-nc
Copy link
Contributor

come-nc commented Jan 16, 2023

Added:

Backend

Removed from public namespace:

@come-nc
Copy link
Contributor

come-nc commented Jan 23, 2023

Added:

Backend

  • Signatures of methods of OCP\AppFramework\Db\Entity changed as follows:
    • public static function fromParams(array $params) -> public static function fromParams(array $params): static
    • public static function fromRow(array $row) -> public static function fromRow(array $row): static
    • protected function setter($name, $args) -> protected function setter(string $name, array $args): void
    • protected function getter($name) -> protected function getter(string $name): mixed
    • protected function markFieldUpdated($attribute) -> protected function markFieldUpdated(string $attribute): void

@nickvergessen
Copy link
Member Author

Added by @julien-nc

Backend

@nickvergessen
Copy link
Member Author

Added by rullzer

Backend

@nickvergessen
Copy link
Member Author

Added by @ChristophWurst

Backend

@nickvergessen
Copy link
Member Author

27 follow up in #37039

@MichaIng
Copy link
Member

Added

Changes for admins

  • The admin panel setup checks do now expect the X-Robots-Tag header to be set to noindex, nofollow, instead of none. While both are equivalent for Google, for other search engines, e.g. Bing, they are not. The value none hence does not prevent your Nextcloud pages from being index by and presented as Bing search results: Change X-Robots-Tag header from "none" to "noindex, nofollow" #36689

@marcelklehr
Copy link
Member

Added

Backend

@narcisgarcia

This comment was marked as off-topic.

@nickvergessen

This comment was marked as off-topic.

@narcisgarcia

This comment was marked as off-topic.

@nickvergessen

This comment was marked as off-topic.

@narcisgarcia

This comment was marked as off-topic.

@nickvergessen

This comment was marked as off-topic.

@skjnldsv skjnldsv closed this as completed May 3, 2023
@enoch85 enoch85 reopened this May 3, 2023
@skjnldsv

This comment was marked as off-topic.

@skjnldsv
Copy link
Member

skjnldsv commented May 3, 2023

27 changes: #37039

@skjnldsv skjnldsv closed this as completed May 3, 2023
@paramazo

This comment was marked as off-topic.

@MichaIng

This comment was marked as off-topic.

@narcisgarcia

This comment was marked as off-topic.

@MichaIng

This comment was marked as off-topic.

@nextcloud nextcloud locked as off-topic and limited conversation to collaborators May 9, 2023
@kesselb kesselb unpinned this issue Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests