anchor.diff:                                         false ->
                                              {error, name, <<"Bucket name can only contain characters in range A-Z, a-z, 0-9 as well as underscore, period, dash & percent. Consult the documentation.">>};
                                          _ ->
  -                                           %% we have to check for conflict here because we were looking for BucketConfig using case sensetive search (in basic_bucket_params_screening/4)
  +                                           %% we have to check for conflict here because we were looking 
  +                                           %% for BucketConfig using case sensetive search (in basic_bucket_params_screening/4)
                                              %% but we do not allow buckets with the same names in a different register
                                              case BucketName =/= undefined andalso ns_bucket:name_conflict(BucketName, AllBuckets) of
                                                  false ->
  
positive.code:          bin_concat_path/1,
           bin_concat_path/2,
           reply_json/3]).
  
  all_accessible_buckets(_PoolId, Req) ->
      BucketsAll = ns_bucket:get_buckets(),
  
negative.code:                                               AllBuckets),
      ?assertEqual([{name, <<"Bucket with given name already exists">>}], E10),
  
      %% it is not possible to create bucket with name longer than 100 characters
      {_OK11, E11} = basic_bucket_params_screening(true, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901",
                                                [{"bucketType", "membase"},
                                                 {"authType", "sasl"}, {"saslPassword", ""},
                                                 {"ramQuotaMB", "400"}, {"replicaNumber", "2"}],
                                                AllBuckets),
      ?assertEqual([{name, ?l2b(io_lib:format("Bucket name cannot exceed ~p characters",
                                              [?MAX_BUCKET_NAME_LEN]))}], E11),
  
      ok.
  
  -endif.
  