Enhancement #5567

NameUtils.getSafeLabel should resort to returning name also if label is empty, not just if label is not defined

Added by Tuukka Lehtonen almost 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:2014-12-31
Priority:4Due date:2015-01-16
Assignee:Tuukka Lehtonen% Done:

100%

Category:UtilsSpent time:-
Target version:1.18.1
Release notes:Developers: NameUtils.getSafeLabel will now resort to returning resource name if the label is defined but empty.
Tags: db, utility
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Associated revisions

Revision 30744
Added by Tuukka Lehtonen almost 3 years ago

Changed NameUtils.getSafeLabel to resort to returning name if label is defined but it is empty.
The whole point of NameUtils.getSafeName/Label is to return something readable, not something empty.
If one wants to explicitly get the label value, a different method should be used anyway.

refs #5567

History

#1 Updated by Tuukka Lehtonen almost 3 years ago

  • Tags set to utility, db
  • Category set to Utils
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Tuukka Lehtonen almost 3 years ago

  • Release notes set to Developers: NameUtils.getSafeLabel will now resort to returning resource name if the label is defined but empty.

#3 Updated by Tuukka Lehtonen almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF