Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8843

String action in class XWikiDocument method getURL should be documented or changed to enumeration

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 5.0-milestone-1
    • 4.5
    • URLs
    • None
    • Trivial
    • N/A
    • N/A

    Description

      The method getURL in class XWikiDocument needs a string parameter called action. It is not clear which values are valid here. We guessed view and it worked. Maybe "edit" is working as well, but guessing is not the right thing to do.
      Either use an enumeration instead of a string (preferred method) or provide a list of valid string values in the javadoc (quick fix).

      Attachments

        Activity

          People

            vmassol Vincent Massol
            rpeinl René Peinl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: