Page 1 of 1

Since https DTDs are no longer validatable

PostPosted:Fri Jun 03, 2016 7:12 am
by Catscratch
Hi,

I noticed a problem that when create a PropertyGroups.xml it is no longer possible to validate them against your DTDs.

E.g. for 6.2 Community.
https://www.openkm.com/dtd/property-groups-2.1.dtd

W3C validation fails. You can try something like https://validator.w3.org/check .

And use:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.1//EN"
                                 "https://www.openkm.com/dtd/property-groups-2.1.dtd">
<property-groups>
  <property-group label="Consulting" name="okg:consulting">
    <input label="Code" type="text" name="okp:consulting.code" />
    <textarea label="Comment" name="okp:consulting.comment" />
  </property-group>
</property-groups>
It seems https connection doesn't return the file content the right way. On http (in the past) everything was fine.

Maybe you can have a look.

Re: Since https DTDs are no longer validatable

PostPosted:Fri Jun 03, 2016 9:00 am
by pavila
Hello,

This problem was solved a few days ago and is included in the night build from http://integration.openkm.com/6.3/

Regards.

Re: Since https DTDs are no longer validatable

PostPosted:Fri Jun 03, 2016 9:06 am
by Catscratch
It's not a problem with OpenKM. At least not for me. It's a general problem e.g. when using other tools to build PropertyGroups.xml. Like with jDom2 or something else. The public DTD should be accessible and validatable with any tool or online service.

Re: Since https DTDs are no longer validatable

PostPosted:Fri Jun 03, 2016 10:36 am
by pavila
I've tried with an validation service and works. Where and what have you tried?

Re: Since https DTDs are no longer validatable

PostPosted:Fri Jun 03, 2016 11:02 am
by Catscratch
Goto https://validator.w3.org/#validate_by_input

Paste in XML from first post. And hit "check".

Re: Since https DTDs are no longer validatable

PostPosted:Mon Jun 13, 2016 8:26 am
by pavila
We have make the HTTPS optional, so you can use the HTTP access to DTD as usual.

Please, verify.

Re: Since https DTDs are no longer validatable

PostPosted:Mon Jul 18, 2016 6:30 am
by Catscratch
Thanks. Now http is working.

Anyway. Https is still not working. But I think this is a problem of HTML standard itself. It seems HTML doesn't allow https in doctype.

Re: Since https DTDs are no longer validatable

PostPosted:Mon Jul 18, 2016 12:17 pm
by pavila
Good to know.

Thanks for the feedback.