Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
XML editing
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Serge Baranov
    5 years ago (14 Dec 2006 19:08)
  • Updated by   root
    2 years ago (17 Jan 2010 20:38)
  • Jira: IDEADEV-12899
    (history, comments)
 
IDEA-35922 Support redirects when fetching external resources
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Support feedback:

Hello, when I try to fetch the resource for the document
http://www.w3.org/2000/09/xmldsig# IDEA prints error message "No xml at location". When I run this location in the browser the
server redirect me to
http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd#
with a valid XML schema.

It seems IDEA cannot fetch schemas from resources with redirects. I am attaching example document with the schema url that doesnt
work:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
        <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
        <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
        <Reference URI="#invoice">
            <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
            <DigestValue>M/MOTXhnz/zrhJUD0hkS9JhLU7U=</DigestValue>
        </Reference>
    </SignedInfo>
    <SignatureValue>lh8x+SoOAYh6CKZ0fBfK2RNjznoudaJbbLgt/w4ME5wqjF7c446rhA==</SignatureValue>
    <Object Id="invoice">
        <invoice XMLns="http://www.company.com/accounting" xmlns="">
            <items>
                <item>
                    <desc>Applied Cryptography</desc>
                    <type>book</type>
                    <unitprice>44.50</unitprice>
                    <quantity>1</quantity>
                </item>
            </items>
            <creditcard>
                <number>123456789</number>
                <expiry>10/20/2009</expiry>
                <lastname>John</lastname>
                <firstname>Smith</firstname>
            </creditcard>
        </invoice>
    </Object>
</Signature>


Issue was resolved
Comments (1)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
22 Dec 2006 21:10
5 years ago
Actually, IDEA supports redirect from the beginning but W3 web server redirects to html file if http 'accept' property request is without application/xml, text/xml :)