@@ -4,10 +4,7 @@ package de.gmuth.ipp.iana
4
4
* Copyright (c) 2020-2024 Gerhard Muth
5
5
*/
6
6
7
- import de.gmuth.ipp.core.IppAttribute
8
- import de.gmuth.ipp.core.IppCollection
9
- import de.gmuth.ipp.core.IppMessage
10
- import de.gmuth.ipp.core.IppTag
7
+ import de.gmuth.ipp.core.*
11
8
import de.gmuth.ipp.core.IppTag.*
12
9
import java.util.logging.Logger.getLogger
13
10
@@ -119,13 +116,15 @@ object IppRegistrationsSection2 {
119
116
120
117
fun selectGroupForAttribute (name : String ) =
121
118
getAttribute(name, false )?.collectionGroupTag().also {
122
- // Also lookup via hard coded list. In the future I might remove the rather large csv file .
119
+ // Also lookup via hard coded list. In the future I might remove the rather large csv files .
123
120
val groupTagWithoutCSV = if (attributesForGroupOperation.contains(name)) Operation else Job
124
- if (it != groupTagWithoutCSV) logger.warning {
125
- " Incorrect attribute group for attribute '$name ': is $groupTagWithoutCSV , expected $it . " +
126
- if (it == null ) " " else
127
- " This needs to be fixed in IppRegistrationSection2.attributesForGroupOperation!" +
128
- " (Please open a bug ticket on https://github.com/gmuth/ipp-client-kotlin/issues)."
121
+ if (it != groupTagWithoutCSV) StringBuilder ().run {
122
+ append(" Incorrect attribute group for attribute '$name ': is $groupTagWithoutCSV , expected $it ." )
123
+ it?.run {
124
+ append(" This needs to be fixed in IppRegistrationSection2.attributesForGroupOperation!" )
125
+ append(" Please open a bug ticket on https://github.com/gmuth/ipp-client-kotlin/issues." )
126
+ }
127
+ throw IppException (toString())
129
128
}
130
129
}
131
130
@@ -234,9 +233,11 @@ object IppRegistrationsSection2 {
234
233
" job-pages-col" ,
235
234
" job-password" ,
236
235
" job-password-encryption" ,
236
+ " job-release-action" ,
237
237
" job-state" ,
238
238
" job-state-message" ,
239
239
" job-state-reasons" ,
240
+ " job-storage" ,
240
241
" job-uri" ,
241
242
" last-document" ,
242
243
" limit" ,
0 commit comments