Bug 906315 - API documentation for system.searchByName contains link which does not work
Summary: API documentation for system.searchByName contains link which does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 550
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Matej Kollar
URL:
Whiteboard:
Depends On:
Blocks: sat560-api
TreeView+ depends on / blocked
 
Reported: 2013-01-31 12:56 UTC by Jan Hutař
Modified: 2013-10-01 21:45 UTC (History)
5 users (show)

Fixed In Version: spacewalk-java-2.0.2-31-sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-01 21:45:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2013-01-31 12:56:59 UTC
Description of problem:
API documentation for system.searchByName() contains link with text "http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html" which does not work as it is interpreted as relative uri.


Version-Release number of selected component (if applicable):
spacewalk-java-1.7.54-111.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Go to https://<fqdn>/rhn/apidoc/handlers/SystemHandler.jsp#searchByName
2. Attempt to click to the link in the text


Actual results:
Link have text:
  http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
but href is:
  https://<fqdn>/rhn/apidoc/handlers/%5C%22http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html%5C%22


Expected results:
Link should work or should not be there.

Comment 1 Tomáš Kašpárek 2013-04-08 08:24:00 UTC
this issue is already fixed in spacewalk.git:
26a73d62dd9459ed49c5ba7170622338586f873e
edd43b95857fc1600e6dc157955a3065a1635349

Comment 7 Martin Korbel 2013-10-01 14:26:57 UTC
Stage validated with Satellite-5.6.0-RHEL5-re20130926.0-x86_64.

Method: searchByName
Description:
Returns a list of system IDs whose name matches the supplied regular expression(defined by <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html">Java representation of regular expressions</a>)

Parameters:

    string sessionKey
    string regexp - A regular expression

Returns:

    array:
        struct - system
            int "id"
            string "name"
            dateTime.iso8601 "last_checkin" - Last time server successfully checked in

Comment 8 Clifford Perry 2013-10-01 21:40:50 UTC
Satellite 5.6 has been released. This bug was tracked under the release.  

This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly
before release). 

Moving to CLOSED CURRENT_RELEASE. 

Text from Upgrade Erratum follows:

Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1395.html


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