Last Comment Bug 45127 - Wrong URL string used to construct kRDF_type object
: Wrong URL string used to construct kRDF_type object
Product: Core Graveyard
Classification: Graveyard
Component: Java APIs to WebShell (show other bugs)
: Trunk
: x86 Windows NT
P3 normal (vote)
: ---
Assigned To: edburns
: geetha.vaidyanaathan
Depends on:
  Show dependency treegraph
Reported: 2000-07-11 07:50 PDT by Alexei V. Mokeev
Modified: 2012-04-09 22:27 PDT (History)
3 users (show)
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Description User image Alexei V. Mokeev 2000-07-11 07:50:39 PDT
in rdf_util.cpp#123 the string "" used
to get kRDF_type. But in Mozilla's rdf.h#55 the RDF_NAMESPACE_URI defined as
"" ,
and used to get kRDF_type.

So, problems can appear when transfer kRDF_type between Webclient and Mozilla's
code, because they are differ.
Comment 1 User image edburns 2000-07-20 12:31:07 PDT
Comment 2 User image edburns 2000-08-07 12:17:13 PDT
I tried it with the other URL, and bookmarks no longer worked.  I'm sticking
with #define NC_NAMESPACE_URI   ""

Marking invalid.
Comment 3 User image Alexei V. Mokeev 2000-08-09 03:44:27 PDT
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:
"" is used to get kRDF_type,
kRDF_nextVal, etc ...

"" is used to get kNC_Name,kNC_URL, etc ..

But in webclient code (rdf_util.cpp) one ""
is used to get ALL.

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

Comment 4 User image edburns 2000-08-15 15:03:03 PDT
Fix checked in.
Comment 5 User image Alexei V. Mokeev 2001-10-18 06:15:13 PDT
Verified with JAVADEV_6_1_20010831.

Note You need to log in before you can comment on or make changes to this bug.