legal/Apache_license-2.0.txt
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 18 Mar 2015 10:50:25 +0100
changeset 26205 e7c1d9e51ba8
parent 809 4366038ff51c
permissions -rw-r--r--
fixed bug 29329: can't download attachments for 2 rows with same name & no ext

When trying to download at once attachemnts for different records that have the
same name and it does not have extension, it fails.

The problem is in case of duplicated names to be included within the zipped file,
a number is appended to the file name before the extension. Extesion is present
is assumed, failing if not.

Fix: don't assume file name has extension.
juanpablo@809
     1
juanpablo@809
     2
                                 Apache License
juanpablo@809
     3
                           Version 2.0, January 2004
juanpablo@809
     4
                        http://www.apache.org/licenses/
juanpablo@809
     5
juanpablo@809
     6
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
juanpablo@809
     7
juanpablo@809
     8
   1. Definitions.
juanpablo@809
     9
juanpablo@809
    10
      "License" shall mean the terms and conditions for use, reproduction,
juanpablo@809
    11
      and distribution as defined by Sections 1 through 9 of this document.
juanpablo@809
    12
juanpablo@809
    13
      "Licensor" shall mean the copyright owner or entity authorized by
juanpablo@809
    14
      the copyright owner that is granting the License.
juanpablo@809
    15
juanpablo@809
    16
      "Legal Entity" shall mean the union of the acting entity and all
juanpablo@809
    17
      other entities that control, are controlled by, or are under common
juanpablo@809
    18
      control with that entity. For the purposes of this definition,
juanpablo@809
    19
      "control" means (i) the power, direct or indirect, to cause the
juanpablo@809
    20
      direction or management of such entity, whether by contract or
juanpablo@809
    21
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
juanpablo@809
    22
      outstanding shares, or (iii) beneficial ownership of such entity.
juanpablo@809
    23
juanpablo@809
    24
      "You" (or "Your") shall mean an individual or Legal Entity
juanpablo@809
    25
      exercising permissions granted by this License.
juanpablo@809
    26
juanpablo@809
    27
      "Source" form shall mean the preferred form for making modifications,
juanpablo@809
    28
      including but not limited to software source code, documentation
juanpablo@809
    29
      source, and configuration files.
juanpablo@809
    30
juanpablo@809
    31
      "Object" form shall mean any form resulting from mechanical
juanpablo@809
    32
      transformation or translation of a Source form, including but
juanpablo@809
    33
      not limited to compiled object code, generated documentation,
juanpablo@809
    34
      and conversions to other media types.
juanpablo@809
    35
juanpablo@809
    36
      "Work" shall mean the work of authorship, whether in Source or
juanpablo@809
    37
      Object form, made available under the License, as indicated by a
juanpablo@809
    38
      copyright notice that is included in or attached to the work
juanpablo@809
    39
      (an example is provided in the Appendix below).
juanpablo@809
    40
juanpablo@809
    41
      "Derivative Works" shall mean any work, whether in Source or Object
juanpablo@809
    42
      form, that is based on (or derived from) the Work and for which the
juanpablo@809
    43
      editorial revisions, annotations, elaborations, or other modifications
juanpablo@809
    44
      represent, as a whole, an original work of authorship. For the purposes
juanpablo@809
    45
      of this License, Derivative Works shall not include works that remain
juanpablo@809
    46
      separable from, or merely link (or bind by name) to the interfaces of,
juanpablo@809
    47
      the Work and Derivative Works thereof.
juanpablo@809
    48
juanpablo@809
    49
      "Contribution" shall mean any work of authorship, including
juanpablo@809
    50
      the original version of the Work and any modifications or additions
juanpablo@809
    51
      to that Work or Derivative Works thereof, that is intentionally
juanpablo@809
    52
      submitted to Licensor for inclusion in the Work by the copyright owner
juanpablo@809
    53
      or by an individual or Legal Entity authorized to submit on behalf of
juanpablo@809
    54
      the copyright owner. For the purposes of this definition, "submitted"
juanpablo@809
    55
      means any form of electronic, verbal, or written communication sent
juanpablo@809
    56
      to the Licensor or its representatives, including but not limited to
juanpablo@809
    57
      communication on electronic mailing lists, source code control systems,
juanpablo@809
    58
      and issue tracking systems that are managed by, or on behalf of, the
juanpablo@809
    59
      Licensor for the purpose of discussing and improving the Work, but
juanpablo@809
    60
      excluding communication that is conspicuously marked or otherwise
juanpablo@809
    61
      designated in writing by the copyright owner as "Not a Contribution."
juanpablo@809
    62
juanpablo@809
    63
      "Contributor" shall mean Licensor and any individual or Legal Entity
juanpablo@809
    64
      on behalf of whom a Contribution has been received by Licensor and
juanpablo@809
    65
      subsequently incorporated within the Work.
juanpablo@809
    66
juanpablo@809
    67
   2. Grant of Copyright License. Subject to the terms and conditions of
juanpablo@809
    68
      this License, each Contributor hereby grants to You a perpetual,
juanpablo@809
    69
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
juanpablo@809
    70
      copyright license to reproduce, prepare Derivative Works of,
juanpablo@809
    71
      publicly display, publicly perform, sublicense, and distribute the
juanpablo@809
    72
      Work and such Derivative Works in Source or Object form.
juanpablo@809
    73
juanpablo@809
    74
   3. Grant of Patent License. Subject to the terms and conditions of
juanpablo@809
    75
      this License, each Contributor hereby grants to You a perpetual,
juanpablo@809
    76
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
juanpablo@809
    77
      (except as stated in this section) patent license to make, have made,
juanpablo@809
    78
      use, offer to sell, sell, import, and otherwise transfer the Work,
juanpablo@809
    79
      where such license applies only to those patent claims licensable
juanpablo@809
    80
      by such Contributor that are necessarily infringed by their
juanpablo@809
    81
      Contribution(s) alone or by combination of their Contribution(s)
juanpablo@809
    82
      with the Work to which such Contribution(s) was submitted. If You
juanpablo@809
    83
      institute patent litigation against any entity (including a
juanpablo@809
    84
      cross-claim or counterclaim in a lawsuit) alleging that the Work
juanpablo@809
    85
      or a Contribution incorporated within the Work constitutes direct
juanpablo@809
    86
      or contributory patent infringement, then any patent licenses
juanpablo@809
    87
      granted to You under this License for that Work shall terminate
juanpablo@809
    88
      as of the date such litigation is filed.
juanpablo@809
    89
juanpablo@809
    90
   4. Redistribution. You may reproduce and distribute copies of the
juanpablo@809
    91
      Work or Derivative Works thereof in any medium, with or without
juanpablo@809
    92
      modifications, and in Source or Object form, provided that You
juanpablo@809
    93
      meet the following conditions:
juanpablo@809
    94
juanpablo@809
    95
      (a) You must give any other recipients of the Work or
juanpablo@809
    96
          Derivative Works a copy of this License; and
juanpablo@809
    97
juanpablo@809
    98
      (b) You must cause any modified files to carry prominent notices
juanpablo@809
    99
          stating that You changed the files; and
juanpablo@809
   100
juanpablo@809
   101
      (c) You must retain, in the Source form of any Derivative Works
juanpablo@809
   102
          that You distribute, all copyright, patent, trademark, and
juanpablo@809
   103
          attribution notices from the Source form of the Work,
juanpablo@809
   104
          excluding those notices that do not pertain to any part of
juanpablo@809
   105
          the Derivative Works; and
juanpablo@809
   106
juanpablo@809
   107
      (d) If the Work includes a "NOTICE" text file as part of its
juanpablo@809
   108
          distribution, then any Derivative Works that You distribute must
juanpablo@809
   109
          include a readable copy of the attribution notices contained
juanpablo@809
   110
          within such NOTICE file, excluding those notices that do not
juanpablo@809
   111
          pertain to any part of the Derivative Works, in at least one
juanpablo@809
   112
          of the following places: within a NOTICE text file distributed
juanpablo@809
   113
          as part of the Derivative Works; within the Source form or
juanpablo@809
   114
          documentation, if provided along with the Derivative Works; or,
juanpablo@809
   115
          within a display generated by the Derivative Works, if and
juanpablo@809
   116
          wherever such third-party notices normally appear. The contents
juanpablo@809
   117
          of the NOTICE file are for informational purposes only and
juanpablo@809
   118
          do not modify the License. You may add Your own attribution
juanpablo@809
   119
          notices within Derivative Works that You distribute, alongside
juanpablo@809
   120
          or as an addendum to the NOTICE text from the Work, provided
juanpablo@809
   121
          that such additional attribution notices cannot be construed
juanpablo@809
   122
          as modifying the License.
juanpablo@809
   123
juanpablo@809
   124
      You may add Your own copyright statement to Your modifications and
juanpablo@809
   125
      may provide additional or different license terms and conditions
juanpablo@809
   126
      for use, reproduction, or distribution of Your modifications, or
juanpablo@809
   127
      for any such Derivative Works as a whole, provided Your use,
juanpablo@809
   128
      reproduction, and distribution of the Work otherwise complies with
juanpablo@809
   129
      the conditions stated in this License.
juanpablo@809
   130
juanpablo@809
   131
   5. Submission of Contributions. Unless You explicitly state otherwise,
juanpablo@809
   132
      any Contribution intentionally submitted for inclusion in the Work
juanpablo@809
   133
      by You to the Licensor shall be under the terms and conditions of
juanpablo@809
   134
      this License, without any additional terms or conditions.
juanpablo@809
   135
      Notwithstanding the above, nothing herein shall supersede or modify
juanpablo@809
   136
      the terms of any separate license agreement you may have executed
juanpablo@809
   137
      with Licensor regarding such Contributions.
juanpablo@809
   138
juanpablo@809
   139
   6. Trademarks. This License does not grant permission to use the trade
juanpablo@809
   140
      names, trademarks, service marks, or product names of the Licensor,
juanpablo@809
   141
      except as required for reasonable and customary use in describing the
juanpablo@809
   142
      origin of the Work and reproducing the content of the NOTICE file.
juanpablo@809
   143
juanpablo@809
   144
   7. Disclaimer of Warranty. Unless required by applicable law or
juanpablo@809
   145
      agreed to in writing, Licensor provides the Work (and each
juanpablo@809
   146
      Contributor provides its Contributions) on an "AS IS" BASIS,
juanpablo@809
   147
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
juanpablo@809
   148
      implied, including, without limitation, any warranties or conditions
juanpablo@809
   149
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
juanpablo@809
   150
      PARTICULAR PURPOSE. You are solely responsible for determining the
juanpablo@809
   151
      appropriateness of using or redistributing the Work and assume any
juanpablo@809
   152
      risks associated with Your exercise of permissions under this License.
juanpablo@809
   153
juanpablo@809
   154
   8. Limitation of Liability. In no event and under no legal theory,
juanpablo@809
   155
      whether in tort (including negligence), contract, or otherwise,
juanpablo@809
   156
      unless required by applicable law (such as deliberate and grossly
juanpablo@809
   157
      negligent acts) or agreed to in writing, shall any Contributor be
juanpablo@809
   158
      liable to You for damages, including any direct, indirect, special,
juanpablo@809
   159
      incidental, or consequential damages of any character arising as a
juanpablo@809
   160
      result of this License or out of the use or inability to use the
juanpablo@809
   161
      Work (including but not limited to damages for loss of goodwill,
juanpablo@809
   162
      work stoppage, computer failure or malfunction, or any and all
juanpablo@809
   163
      other commercial damages or losses), even if such Contributor
juanpablo@809
   164
      has been advised of the possibility of such damages.
juanpablo@809
   165
juanpablo@809
   166
   9. Accepting Warranty or Additional Liability. While redistributing
juanpablo@809
   167
      the Work or Derivative Works thereof, You may choose to offer,
juanpablo@809
   168
      and charge a fee for, acceptance of support, warranty, indemnity,
juanpablo@809
   169
      or other liability obligations and/or rights consistent with this
juanpablo@809
   170
      License. However, in accepting such obligations, You may act only
juanpablo@809
   171
      on Your own behalf and on Your sole responsibility, not on behalf
juanpablo@809
   172
      of any other Contributor, and only if You agree to indemnify,
juanpablo@809
   173
      defend, and hold each Contributor harmless for any liability
juanpablo@809
   174
      incurred by, or claims asserted against, such Contributor by reason
juanpablo@809
   175
      of your accepting any such warranty or additional liability.
juanpablo@809
   176
juanpablo@809
   177
   END OF TERMS AND CONDITIONS
juanpablo@809
   178
juanpablo@809
   179
   APPENDIX: How to apply the Apache License to your work.
juanpablo@809
   180
juanpablo@809
   181
      To apply the Apache License to your work, attach the following
juanpablo@809
   182
      boilerplate notice, with the fields enclosed by brackets "[]"
juanpablo@809
   183
      replaced with your own identifying information. (Don't include
juanpablo@809
   184
      the brackets!)  The text should be enclosed in the appropriate
juanpablo@809
   185
      comment syntax for the file format. We also recommend that a
juanpablo@809
   186
      file or class name and description of purpose be included on the
juanpablo@809
   187
      same "printed page" as the copyright notice for easier
juanpablo@809
   188
      identification within third-party archives.
juanpablo@809
   189
juanpablo@809
   190
   Copyright [yyyy] [name of copyright owner]
juanpablo@809
   191
juanpablo@809
   192
   Licensed under the Apache License, Version 2.0 (the "License");
juanpablo@809
   193
   you may not use this file except in compliance with the License.
juanpablo@809
   194
   You may obtain a copy of the License at
juanpablo@809
   195
juanpablo@809
   196
       http://www.apache.org/licenses/LICENSE-2.0
juanpablo@809
   197
juanpablo@809
   198
   Unless required by applicable law or agreed to in writing, software
juanpablo@809
   199
   distributed under the License is distributed on an "AS IS" BASIS,
juanpablo@809
   200
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
juanpablo@809
   201
   See the License for the specific language governing permissions and
juanpablo@809
   202
   limitations under the License.