Detail pages in OpenCms 13, was Aw: Re: Search index configuration

Fabian Huschka via opencms-dev <[email protected]>
Newsgroups gmane.comp.cms.opencms.devel
Message-ID <trinity-6392309b-6ada-48f0-a14f-3fc58c841c11-1660602416514@3c-app-gmx-bs45>
Hi Alex,

Many thanks for your answers which brings up a follow-up question: There is no longer an GUI option to import exported users - correct?

Further did I most likely hit a bug with detail pages. With two independent projects I see the same behaviour. The link for the resource to be displayed on a detail page (title in this case) is formatted correctly, however clicking on this link ends up in a 404 page and there is no error in the logs. However setting log level to "debug" for the packages

org.opencms.detailpage, ...ade.detailpage.CmsDefaultDetailPageHandler and ...ade.detailpage.CmsDetailPageResourceHanlder

it yields the following log result example

DEBUG [ge.CmsDefaultDetailPageHandler: 328] [8pc5Sf] isValidDetailPage(/sites/default/de/aktuelles/neuigkeiten/meldung/index.html,/sites/default/de/aktuelles/.content/da_news/news_0087xml)

DEBUG [ge.CmsDefaultDetailPageHandler: 362] [8pc5Sf] Returned false because detail page is not in context /sites/default/de/aktuelles/

DEBUG [ge.CmsDefaultDetailPageHandler: 328] [e01R2h] isValidDetailPage(/sites/default/de/aktuelles/neuigkeiten/meldung/index.html,/sites/default/de/aktuelles/.content/da_news/news_0087xml)

DEBUG [ge.CmsDefaultDetailPageHandler: 362] [e01R2h] Returned false because detail page is not in context /sites/default/de/aktuelles/

So, the problem here is that the configuration for the detail page has to be the folder with a trailing slash and not the name of the detail page file itself. A missing slash at the end also produces this behaviour. Once you know this it is rather easy to circumvent but it can also be a big PIA if you do not know where to touch to make this work.

For the above example, if you change /sites/default/de/aktuelles/neuigkeiten/meldung/index.html in the detail page tab to /sites/default/de/aktuelles/neuigkeiten/meldung/ everything works as expected again.

Cheers,

\Fabian

Gesendet: Freitag, 05. August 2022 um 11:03 Uhr

Von: "Alex Kandzior via opencms-dev" <[email protected]>

An: "The OpenCms mailing list" <[email protected]>

Cc: "Alex Kandzior" <[email protected]>

Betreff: Re: [opencms-dev] Search index configuration

Hi Fabian!

- How can I import users and groups that have been exported from e.g. 10.5? In other terms, as the password mechanics seem to have changed, how can I migrate local users and groups to a fresh install of OpenCms 13?

Check the configuration file „opencms-system.xml“. Somewhere aound line 35 is the <passwordhandler> configuration.

Change this back to:

<passwordhandler class="org.opencms.security.CmsDefaultPasswordHandler">

<encoding>UTF-8</encoding>

<digest-type>MD5</digest-type>

<param name="compatibility.convert.digestencoding">false</param>

</passwordhandler>

Then the old MD5 encoded password should still work.

- Can I no longer add/modify search indexes and sources through the GUI?

Yes, this is the case.

Kind regards,
Alex.

-------------------
Alexander Kandzior

Alkacon Software - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

Am 04.08.2022 um 22:10 schrieb Fabian Huschka via opencms-dev <[email protected] >:

Hi,

I had finally the chance to fiddle with OpenCms 13. And two things struck me right away:

- How can I import users and groups that have been exported from e.g. 10.5? In other terms, as the password mechanics seem to have changed, how can I migrate local users and groups to a fresh install of OpenCms 13?

- Can I no longer add/modify search indexes and sources through the GUI?

Many thanks,

\Fabian

_______________________________________________

This mail is sent to you from the opencms-dev mailing list

To change your list options, or to unsubscribe from the list, please visit

https://lists.opencms.org/mailman/listinfo/opencms-dev

_______________________________________________ This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit https://lists.opencms.org/mailman/listinfo/opencms-dev

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
https://lists.opencms.org/mailman/listinfo/opencms-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.