The default bug view has changed. See this FAQ.

Wrong URL string used to construct kRDF_type object

VERIFIED FIXED

Status

Core Graveyard
Java APIs to WebShell
P3
normal
VERIFIED FIXED
17 years ago
5 years ago

People

(Reporter: Alexei V. Mokeev, Assigned: edburns)

Tracking

Trunk
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
in rdf_util.cpp#123 the string "http://home.netscape.com/NC-rdf#" used
to get kRDF_type. But in Mozilla's rdf.h#55 the RDF_NAMESPACE_URI defined as
"http://www.w3.org/1999/02/22-rdf-syntax-ns#" ,
and used to get kRDF_type.

So, problems can appear when transfer kRDF_type between Webclient and Mozilla's
code, because they are differ.
(Assignee)

Comment 1

17 years ago
a
Status: NEW → ASSIGNED
(Assignee)

Comment 2

17 years ago
I tried it with the other URL, and bookmarks no longer worked.  I'm sticking
with #define NC_NAMESPACE_URI   "http://home.netscape.com/NC-rdf#"
.

Marking invalid.
Status: ASSIGNED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
(Reporter)

Comment 3

17 years ago
Reopen.
Please look at the part of code of nsBookmarksService.cpp#230 :
...
 gRDF->GetResource(NC_NAMESPACE_URI "Name",                &kNC_Name);
 gRDF->GetResource(NC_NAMESPACE_URI "ShortcutURL",        &kNC_ShortcutURL);
 gRDF->GetResource(NC_NAMESPACE_URI "URL",                &kNC_URL);
 gRDF->GetResource(RDF_NAMESPACE_URI "type",              &kRDF_type);
 gRDF->GetResource(RDF_NAMESPACE_URI "nextVal",           &kRDF_nextVal)
...
and note that really two different URI's used to construct different resources:
"http://www.w3.org/1999/02/22-rdf-syntax-ns#" is used to get kRDF_type,
kRDF_nextVal, etc ...

and 
"http://home.netscape.com/NC-rdf#" is used to get kNC_Name,kNC_URL, etc ..

But in webclient code (rdf_util.cpp) one "http://home.netscape.com/NC-rdf#"
is used to get ALL.

So from current point of view this bug is valid:
Wrong URL used to construct kRDF_type 

Status: RESOLVED → REOPENED
Resolution: INVALID → ---
(Assignee)

Comment 4

17 years ago
Fix checked in.
Status: REOPENED → RESOLVED
Last Resolved: 17 years ago17 years ago
Resolution: --- → FIXED
(Reporter)

Comment 5

16 years ago
Verified with JAVADEV_6_1_20010831.
Mark VERIFIED
Status: RESOLVED → VERIFIED
Component: Java APIs to WebShell → Java APIs to WebShell
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.