After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 556787 - Patch to implement SafeUri entirely in managed code
Patch to implement SafeUri entirely in managed code
Status: RESOLVED WONTFIX
Product: hyena
Classification: Other
Component: Hyena
git master
Other All
: Normal enhancement
: ---
Assigned To: hyena-maint
hyena-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2008-10-17 21:16 UTC by Eric Schultz
Modified: 2018-07-10 23:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A new version of SafeUri.cs (13.26 KB, text/plain)
2008-10-17 21:17 UTC, Eric Schultz
  Details
Patch for SafeUri (11.24 KB, patch)
2008-10-17 21:35 UTC, Eric Schultz
needs-work Details | Review

Description Eric Schultz 2008-10-17 21:16:27 UTC
I've developed a patch to implement the marshaled functions in SafeUri in C# instead of as a call out to GLib.
Comment 1 Eric Schultz 2008-10-17 21:17:28 UTC
Created attachment 120806 [details]
A new version of SafeUri.cs
Comment 2 Eric Schultz 2008-10-17 21:35:55 UTC
Created attachment 120807 [details] [review]
Patch for SafeUri
Comment 3 Eric Schultz 2008-10-17 21:41:14 UTC
The functions implemented are almost exactly based on the corresponding functions in GLib.
Comment 4 Bertrand Lorentz 2008-12-07 11:17:30 UTC
Thanks for the patch.

Please follow the coding style guideline in the HACKING file : space before method parenthesis, method names...

Some unit tests would also be nice, to make sure there are no regressions.
Comment 5 Eric Schultz 2009-01-26 11:57:00 UTC
I'm cleaning up the code so it fits the coding style guidelines and beginning to work on unit tests. I'm trying to think of Uri cases for testing. Here is what I have: (these cases will be tested in both directions and "round-tripped")

file:///some/path/song.ext -> /some/path/song.ext

(these two need to be tested on Win32)
file://C:\some\path\song.ext -> C:\some\path\song.ext
file://C:/some/path/song.ext -> C:\some\path\song.ext

Anyone have any ideas for other test cases?


(In reply to comment #4)
> Thanks for the patch.
> 
> Please follow the coding style guideline in the HACKING file : space before
> method parenthesis, method names...
> 
> Some unit tests would also be nice, to make sure there are no regressions.
> 

Comment 6 David Nielsen 2011-01-01 17:51:30 UTC
SafeUri was moved to Hyena, is there any update on this?
Comment 7 André Klapper 2018-07-10 23:02:15 UTC
Hyena is not under active development anymore and had its last code changes
more than three years ago. Its codebase has been archived:
https://gitlab.gnome.org/Archive/hyena/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.