DDC-1701: XML Export Driver outputs incorrect xsi:SchemaLocation #2139

Closed
opened 2026-01-22 13:42:28 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 13, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @zeroedin-bill:

It seems the naked domain doctrine-project.org does not forward the schema xsd request URLs to www.doctrine-project.org like it should.

Either the XML export driver and doctrine project docs should be changed to specify www.doctrine-project.org, or the webserver configuration should redirect the XML schema urls properly.

I'd say the XML ns and schema declarations should point to a proper subdomain of doctrine-project.org.

The XML Export Driver outputs:

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
...
</doctrine-mapping>

It should output:

...
</doctrine-mapping>

Originally created by @doctrinebot on GitHub (Mar 13, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @zeroedin-bill: It seems the naked domain doctrine-project.org does not forward the schema xsd request URLs to www.doctrine-project.org like it should. Either the XML export driver and doctrine project docs should be changed to specify www.doctrine-project.org, or the webserver configuration should redirect the XML schema urls properly. I'd say the XML ns and schema declarations should point to a proper subdomain of doctrine-project.org. The XML Export Driver outputs: ``` <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> ... </doctrine-mapping> ``` It should output: ```<doctrine-mapping xmlns="http://www.doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.doctrine-project.org/schemas/orm/doctrine-mapping http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> ... </doctrine-mapping> ``` ```
admin added the Bug label 2026-01-22 13:42:29 +01:00
admin closed this issue 2026-01-22 13:42:29 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 13, 2012):

Comment created by @zeroedin-bill:

Also, if the schema locations are explicitly pointed at www.doctrine-project.org, the XSD would need to change as follows:

From:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
    xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
    elementFormDefault="qualified">

To:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.doctrine-project.org/schemas/orm/doctrine-mapping"
    xmlns:orm="http://www.doctrine-project.org/schemas/orm/doctrine-mapping"
    elementFormDefault="qualified">
@doctrinebot commented on GitHub (Mar 13, 2012): Comment created by @zeroedin-bill: Also, if the schema locations are explicitly pointed at www.doctrine-project.org, the XSD would need to change as follows: From: ``` <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping" elementFormDefault="qualified"> ``` To: ``` <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:orm="http://www.doctrine-project.org/schemas/orm/doctrine-mapping" elementFormDefault="qualified"> ```
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Comment created by @beberlei:

Bug in the redirect map after a recent website upgrade, now fixed.

@doctrinebot commented on GitHub (Mar 14, 2012): Comment created by @beberlei: Bug in the redirect map after a recent website upgrade, now fixed.
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 14, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2139